Function run_cli_with_connection
pub async fn run_cli_with_connection<M, F, Fut>(migrator: M, make_connection: F)where
M: MigratorTrait,
F: FnOnce(ConnectOptions) -> Fut,
Fut: Future<Output = Result<DatabaseConnection, DbErr>>,Expand description
Same as run_cli where you provide the function to create the DbConn.
This allows configuring the database connection as you see fit.
E.g. you can change settings in ConnectOptions or you can load sqlite
extensions.