tern 3.1.6

Embedded database migrations in SQL or Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use tern::App;

pub mod simple;
use simple::ExampleOptions;

#[tokio::main]
async fn main() {
    let mut env = env_logger::Builder::from_default_env();
    env.filter(None, log::LevelFilter::Info).init();

    let app = App::new(ExampleOptions);

    if let Err(e) = app.run().await {
        log::error!("{e}");
        std::process::exit(1);
    }
}