sql_from_models-cli 0.1.3

Command-line utility for SQLx, the Rust SQL toolkit.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use console::style;
use dotenv::dotenv;
use sql_from_models_cli::Opt;
use structopt::StructOpt;

#[tokio::main]
async fn main() {
    dotenv().ok();

    // no special handling here
    if let Err(error) = sql_from_models_cli::run(Opt::from_args()).await {
        println!("{}: {}", style("error").bold().red(), error);
        std::process::exit(1);
    }
}