Chdb for rust
Use clickhouse as library, based on clickhouse local
Requirements:
You should have libchdb
Install
cargo add chdb
or add to Cargo.toml
chdb = "0.1"
Powered by:
- ClickHouse - https://clickhouse.com/
- Chdb - https://github.com/chdb-io/chdb
- libchdb - https://github.com/metrico/libchdb
Usage
use ;
let result = new
.option
.option
.exec
.unwrap;
println!;
println!;
println!;
println!;
Otputs:
SELECT number FROM numbers(10)
Elapsed: 0.007413874
Rows: 10
Bytes: 80
Result:
number
0
1
2
3
4
5
6
7
8
9
Options and flags
List of available options here