oximod 0.1.13

MongoDB ODM for Rust inspired by Mongoose
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use oximod::OxiClient;
use testresult::TestResult;

mod common;
use common::init;

// Run test: cargo nextest run connects_to_db_successfully
#[tokio::test]
async fn connects_to_db_successfully() -> TestResult {
    init().await?;

    OxiClient::global().unwrap_or_else(|e| panic!("{}", e));

    Ok(())
}