TS→Rust bridge (introspect + codegen) + split-by-population reframe#9
Merged
Conversation
…ulation Reframe (mirrors smooai-postgres-kit): TypeScript is the source of truth for STATIC dev-authored CH tables; the Rust crate is the TS→Rust BRIDGE for them, and stays canonical for the DYNAMIC customer/runtime tables. - codegen.rs: ch_type_to_rust + rust_row_struct (CH type → Rust type; emit a #[derive(Row)] struct; keyword-escaped fields). - introspect.rs: introspect_columns + introspect_row_struct (live table → Rust source, the bridge one-liner) over the existing ChExecutor. - 3rd testcontainers integration: create table → introspect → generated struct. - README/ROADMAP reframed to the dual-role (bridge + runtime toolkit); lib.rs doc updated. Scrubbed the last stray 'chkit' temp-dir prefix — no obsession branding. - crate 0.1.0 → 0.2.0 (new bridge API). 41 unit + 3 real-ClickHouse integration tests; fmt + clippy -D warnings clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mirrors the smooai-postgres-kit reframe, applied deliberately to ClickHouse (the Postgres "richness wall" is mostly absent here, but the symmetry + TS authoring DX win, and the dynamic layer must stay Rust regardless):
@smooai/clickhouse-kitTS DSL). The Rust crate is the TS→Rust bridge:introspect(live → Rust) +codegen(ch_type_to_rust/rust_row_struct→#[derive(Row)]) +check_drift(Rust view ≡ live).New:
src/codegen.rs,src/introspect.rs, a 3rd testcontainers integration (create → introspect → generated Rust struct). README/ROADMAP/lib.rs reframed to the dual role. Scrubbed the last straychkittemp-dir prefix (no ObsessionDB/chkit branding anywhere). Crate 0.1.0 → 0.2.0.41 unit + 3 real-ClickHouse integration tests, clippy -D warnings clean.
🤖 Generated with Claude Code