sqltool 0.4.1

功能强大的数据库迁移、同步、运维工具,支持自动分库分表、慢查询检测、数据对比、备份恢复,提供多语言SDK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use clap::Parser;
use sqltool::{init, Args, execute};

#[tokio::main]
async fn main() {
    // 初始化库
    init();
    
    // 解析命令行参数
    let args = Args::parse();
    
    // 执行命令
    if let Err(e) = execute(args).await {
        eprintln!("Error: {}", e);
        std::process::exit(1);
    }
}