You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description = "Bidirectional ClickHouse DDL bridge for OGAR. emit_clickhouse_ddl(Class) renders CREATE TABLE … ENGINE = MergeTree; parse_clickhouse_ddl (behind `clickhouse-parser`) drives sqlparser with the ClickHouseDialect and walks the AST back into Vec<Class>. Companion to ogar-adapter-surrealql + ogar-adapter-ttl; per Phase 2b of docs/RDF-OWL-ALIGNMENT.md §10. Composes with bardioc PR #19's substrate-b-shadow::ClickHouseQuery — the schema this adapter models is the schema the runtime decoder reads rows against."
10
+
11
+
[features]
12
+
default = []
13
+
serde = ["dep:serde", "ogar-vocab/serde"]
14
+
# Enables ClickHouse DDL parsing via sqlparser-rs. Emit is feature-
15
+
# free; only the AST walk requires the parser dep. Mirrors the
16
+
# surrealql / ttl adapter pattern (the parser dep is the heavy
17
+
# subscriber; consumers who only need emit don't pay for it).
18
+
clickhouse-parser = ["dep:sqlparser"]
19
+
20
+
[dependencies]
21
+
ogar-vocab = { path = "../ogar-vocab" }
22
+
serde = { workspace = true, optional = true }
23
+
# sqlparser 0.59 handles ClickHouse Nullable(X) cleanly under the
24
+
# ClickHouseDialect (probed before adopting). Earlier versions
0 commit comments