renovate 0.2.23

A new way to handle Postgres schema migration.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use clap_utils::prelude::*;
use renovate::commands::{Args, CommandExecutor};

#[tokio::main]
async fn main() -> Result<()> {
    let args = Args::parse();
    let action = &args.action;
    action.execute(&args).await?;

    #[cfg(feature = "cli-test")]
    if args.drop_on_exit {
        use renovate::{DatabaseRepo, RenovateConfig};
        let config = RenovateConfig::load("renovate.yml").await?;
        let repo = DatabaseRepo::new(&config);
        repo.drop_database().await.ok();
    }
    Ok(())
}