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.
13 lines
261 B
13 lines
261 B
8 years ago
|
use rocksdb::{DB, Options};
|
||
|
|
||
|
|
||
|
#[test]
|
||
|
fn test_set_num_levels() {
|
||
|
let path = "_rust_rocksdb_test_set_num_levels";
|
||
|
let mut opts = Options::default();
|
||
|
opts.create_if_missing(true);
|
||
|
opts.set_num_levels(2);
|
||
|
let db = DB::open(&opts, path).unwrap();
|
||
|
drop(db);
|
||
|
}
|