chm 0.1.17

Migrations CLI tool for ClickHouse
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::{
    errors::CLIError,
    tools::migrations::{run_pending_migrations, SetupArgs},
};

pub async fn run_command() -> Result<(), CLIError> {
    let config = SetupArgs::from_toml_file().await?;

    run_pending_migrations(config).await?;

    Ok(())
}