chdb 0.1.2

Use clickhouse as library (chdb)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::string::FromUtf8Error;

#[derive(Debug)]
pub struct QueryResult {
    pub buf: Vec<u8>,
    pub elapsed: f64,
    pub rows_read: u64,
    pub bytes_read: u64,
}

impl QueryResult {
    pub fn to_string(self) -> Result<String, FromUtf8Error> {
        String::from_utf8(self.buf)
    }
}