clickhouse-qol 0.1.2

Quality of Life tools for ClickHouse
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::error::ClickhouseToolError;

#[async_trait::async_trait]
pub trait ClickhouseMigrationTrait: Send + Sync {
    async fn up(&self) -> Result<(), ClickhouseToolError>;
    async fn down(&self) -> Result<(), ClickhouseToolError>;
}

pub trait ClickhouseMigratorTrait {
    fn migrations(&self) -> Vec<Box<dyn ClickhouseMigrationTrait>>;
}