Installation
Install libchdb
Install the chDB library:Usage
chDB Rust provides both stateless and stateful query execution modes.Stateless usage
For simple queries without persistent state:Stateful usage (Sessions)
For queries requiring persistent state like databases and tables:Building and testing
Build the project
Run tests
Development dependencies
The project includes these development dependencies:bindgen(v0.70.1) - Generate FFI bindings from C headerstempdir(v0.3.7) - Temporary directory handling in teststhiserror(v1) - Error handling utilities
Error handling
chDB Rust provides comprehensive error handling through theError enum: