fork of https://github.com/rust-rocksdb/rust-rocksdb for nextgraph
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
336 B
11 lines
336 B
4 years ago
|
use rocksdb::{SingleThreaded, DBWithThreadMode, Options};
|
||
|
|
||
|
fn main() {
|
||
|
let db = DBWithThreadMode::<SingleThreaded>::open_default("/path/to/dummy").unwrap();
|
||
|
let db_ref1 = &db;
|
||
|
let db_ref2 = &db;
|
||
|
let opts = Options::default();
|
||
|
db_ref1.create_cf("cf1", &opts).unwrap();
|
||
|
db_ref2.create_cf("cf2", &opts).unwrap();
|
||
|
}
|