chdb 0.1.0

Use clickhouse as library (chdb)
Documentation

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:

Usage


let result = Query::new("SELECT number FROM numbers(10)")
    .option(option!("log-level", "trace"))
    .option(option!("format", "TSVWithNames"))
    .option(flag!("verbose"))
    .exec()
    .unwrap();

println!("{}", result.to_string().unwrap());

Available options