mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
Add support for transpiling SQL from MySQL, PostgreSQL, SQLite, Snowflake, DuckDB, and 25+ other dialects into ClickHouse SQL using the `polyglot-sql` Rust library. This follows the same integration pattern as the existing PRQL support: Rust library with C FFI -> transpile to ClickHouse SQL -> parse with standard `ParserQuery`. Usage: SET allow_experimental_polyglot_dialect = 1; SET dialect = 'polyglot'; SET polyglot_dialect = 'sqlite'; SELECT IFNULL(a, 1) FROM t; New settings: - `allow_experimental_polyglot_dialect` (Bool) - gate for the feature - `polyglot_dialect` (String) - source dialect name (e.g. 'sqlite', 'mysql') Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
11 lines
146 B
TOML
11 lines
146 B
TOML
[package]
|
|
edition = "2021"
|
|
name = "_ch_rust_polyglot"
|
|
version = "0.1.0"
|
|
|
|
[dependencies]
|
|
polyglot-sql = "0.1.13"
|
|
|
|
[lib]
|
|
crate-type = ["staticlib"]
|