clickhouse-connection-pool 0.1.3

A connection pooling library for ClickHouse in Rust, built on top of deadpool.
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub trait Model {
    type T;

    fn create_table_sql() -> &'static str;
    fn table_name() -> &'static str;
    fn column_names() -> Vec<&'static str>;
    fn to_row(&self) -> (Vec<&'static str>, Vec<String>);
    fn insert_query(&self) -> String;
    fn batch_insert_query(items: &[Self::T]) -> String;
    fn build_select_query(where_clause: Option<&str>, limit: Option<u64>, offset: Option<u64>) -> String;
}