add set_iterate_upper_bound api for readoptions

master
zhangjinpeng1987 8 years ago committed by Karl Hobley
parent 12259e0c1b
commit 9ec9d74a1d
  1. 8
      src/rocksdb.rs

@ -886,6 +886,14 @@ impl ReadOptions {
snapshot.inner);
}
}
pub fn set_iterate_upper_bound(&mut self, key: &[u8]) {
unsafe {
rocksdb_ffi::rocksdb_readoptions_set_iterate_upper_bound(self.inner,
key.as_ptr(),
key.len() as size_t);
}
}
}
impl Default for ReadOptions {

Loading…
Cancel
Save