ch2rs 0.1.8

Generate Rust structs from ClickHouse rows
Documentation
1
2
3
4
5
6
7
8
9
10
use anyhow::Result;
use structopt::StructOpt;

#[tokio::main(flavor = "current_thread")]
async fn main() -> Result<()> {
    let options = ch2rs::Options::from_args();
    let code = ch2rs::generate(options).await?;
    println!("{}", code);
    Ok(())
}