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 SDKs | plan not known |
|---|
Alternatives
The same job
These do what chDB does.
