indradb-lib 0.12.1

A graph database library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![cfg(test)]

pub use super::datastore::PostgresDatastore;
pub use super::super::tests;
pub use std::env;
use std::sync::{Once, ONCE_INIT};

static START: Once = ONCE_INIT;

full_test_impl!({
    let connection_string = env::var("TEST_POSTGRES_URL").expect("Expected a TEST_POSTGRES_URL");

    START.call_once(|| {
        PostgresDatastore::create_schema(connection_string.clone()).unwrap();
    });

    PostgresDatastore::new(Some(1), connection_string, false).unwrap()
});