sqlweld 0.2.0

Create SQL files from templates and partials
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::panic::Location;

use clap::Parser;
use sqlweld::{build, Error, Options};

fn main() -> Result<(), error_stack::Report<Error>> {
    #[cfg(debug_assertions)]
    let hide_file_locs = false;
    #[cfg(not(debug_assertions))]
    let hide_file_locs = std::env::var("RUST_BACKTRACE").is_err();

    if hide_file_locs {
        error_stack::Report::install_debug_hook::<Location>(|_, _| {});
    }

    let options = Options::parse();
    build(options)
}