mongo_driver 0.16.3

Mongo Rust driver built on top of the Mongo C driver
1
2
3
4
5
6
7
8
use std::env;

pub fn mongodb_test_connection_string() -> &'static str {
    match env::var("MONGODB_CONNECTION_STRING") {
        Ok(value) => Box::leak(value.into_boxed_str()),
        Err(_) => "mongodb://localhost:27017",
    }
}