mongod 0.3.6

An abstraction layer on mongodb
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use mongod;

#[allow(dead_code)]
pub fn setup() {
    // FIXME: Until we impl database and collection on the blocking client we have to spawn in a
    // runtime...
    let rt = tokio::runtime::Runtime::new().unwrap();
    rt.block_on(async_setup());
}

pub async fn async_setup() {
    let client = mongod::Client::new();
    client.database().drop(None).await.unwrap();
}