feat: adds the setup command to the sqlx-cli

The reset command is the equivalent of `sqlx db create`,
and `sqlx migrate run`.
This commit is contained in:
Kramer Hampton
2020-08-31 18:00:18 -04:00
committed by Austin Bonander
parent 916f1fccf2
commit 2e1658e08b
3 changed files with 15 additions and 5 deletions

View File

@@ -64,6 +64,8 @@ pub enum DatabaseCommand {
#[clap(short)]
yes: bool,
},
/// Creates the database specified in your DATABASE_URL and runs any pending migrations.
Setup,
}
/// Group of commands for creating and running migrations.