talira

The power of ClickHouse, in-process

open sourceApache-2.0self-hostablefree

chDB is an in-process SQL OLAP engine built on ClickHouse: it embeds the ClickHouse engine as a library, so Python and other programs run ClickHouse SQL over local files, DataFrames and remote data without installing or running a ClickHouse server. It reads and writes Parquet, CSV, JSON, Arrow, ORC and dozens more formats, exchanges data with DataFrames with minimal copying, and supports Python DB API 2.0. Its DataStore API takes pandas-style code, records it as a lazy pipeline and compiles it to optimized ClickHouse SQL. Bindings exist for Python, C and C++, Node.js, Go, Rust, Java, Ruby, .NET, Bun and Zig, and chDB-Wasm runs the full engine in the browser. It's maintained under ClickHouse and is an alternative to DuckDB.

Problems it solves

  • run fast analytical SQL over Parquet files inside my Python script without setting up a database server
  • speed up slow pandas code on large data without rewriting it
  • query CSV, JSON and Parquet files with ClickHouse SQL from my application
  • embed an OLAP engine in my app instead of running ClickHouse
  • run SQL analytics in the browser without a backend

Features

  • ClickHouse SQL engine in-process, no server
  • Parquet, CSV, JSON, Arrow, ORC and 60+ formats
  • low-copy exchange with pandas DataFrames
  • pandas-compatible DataStore API with lazy execution
  • Python DB API 2.0
  • ADBC support
  • bindings for many languages
  • WebAssembly build that runs in the browser

Limitations

  • The Python package supports macOS and Linux only (x86_64 and ARM64), not Windows1

Capabilities

Has official SDKsplan not known

Alternatives

The same job

These do what chDB does.

  1. DuckDB An in-process analytical SQL database that queries CSV, JSON, Parquet and Iceberg files directly, from a laptop to a large server.
  2. SQLite Small. Fast. Reliable. Choose any three.

Compare chDB with the top 3