tank-chdb 0.44.0

chDB driver implementation for Tank: the Rust data layer
docs.rs failed to build tank-chdb-0.44.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

tank-chdb

chDB driver implementation for Tank: the Rust data layer.

Implements Tank’s Driver and related traits for chDB, mapping Tank operations and queries into direct chDB commands. It does not replace the main tank crate. You still need it to define entities, manage schemas, and build queries.

📘 https://tankhq.github.io/tank

🖥️ https://github.com/TankHQ/tank

📦 https://crates.io/crates/tank

Features

  • In-process SQL engine on top of ClickHouse via chdb-rust
  • Reuses the ClickHouse SQL dialect from tank-clickhouse
  • Streams results in JSONEachRow format, parsed row by row

Install

cargo add tank
cargo add tank-chdb

Optional feature flags:

  • bundled (default): links the chDB library statically, so the binary is self-contained.

Disable it to link libchdb dynamically instead:

cargo add tank-chdb --no-default-features

Quick Start

use tank::{ConnectionPool, Driver, PoolConfig};
use tank_chdb::ChDBDriver;

let driver = ChDBDriver::new();
let pool = driver.connect_pool("chdb://".into(), PoolConfig::new()).await?;
let mut connection = pool.get().await?;