mongodb_migrator/migrator/
default.rs
1use mongodb::Database;
2
3use super::with_connection::WithConnection;
4
5pub struct DefaultMigrator {}
6
7impl DefaultMigrator {
8 pub fn new() -> Self {
9 Self {}
10 }
11
12 pub fn with_conn(self, db: Database) -> WithConnection {
13 WithConnection { db }
14 }
15}