tempdb_cockroach 1.0.9

Temporary databases for unit testing
Documentation
1
2
3
4
5
6
7
8
9
10
11
extern crate tempdb_cockroach;

use tempdb_cockroach::TempCockroach;

#[test]
fn test() {
    let db = TempCockroach::new().expect("Failed to create DB");
    println!("Connection string: {}", db.url());

    // Cockroach process and data are cleaned up when db goes out of scope.
}