(migrator: M)
| 13 | const MIGRATION_DIR: &str = "./"; |
| 14 | |
| 15 | pub async fn run_cli<M>(migrator: M) |
| 16 | where |
| 17 | M: MigratorTrait, |
| 18 | { |
| 19 | run_cli_with_connection(migrator, Database::connect).await; |
| 20 | } |
| 21 | |
| 22 | /// Same as [`run_cli`] where you provide the function to create the [`DbConn`]. |
| 23 | /// |
no test coverage detected