Add raw_iterator_cf_opt to the DB API

The underlying functionality already existed, but it wasn't exposed to
the top-level API.
master
Renar Narubin 6 years ago
parent ea770309c8
commit 6cf5be4a61
  1. 8
      src/db.rs

@ -1167,6 +1167,14 @@ impl DB {
DBRawIterator::new_cf(self, cf_handle, &opts)
}
pub fn raw_iterator_cf_opt(
&self,
cf_handle: ColumnFamily,
readopts: &ReadOptions,
) -> Result<DBRawIterator, Error> {
DBRawIterator::new_cf(self, cf_handle, readopts)
}
pub fn snapshot(&self) -> Snapshot {
Snapshot::new(self)
}

Loading…
Cancel
Save