1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
use r2d2_mongodb::MongodbConnectionManager; mod aggregate; mod find; mod insert_one; mod find_one_and_update; mod find_one_and_delete; mod delete_many; mod update_many; #[cfg(test)] mod tests { #[test] fn it_works() { assert_eq!(2 + 2, 4); } } #[derive(Clone)] pub struct Database{ pub db: r2d2::Pool<MongodbConnectionManager>, }