From 6cf5be4a61c361da5680ca3448683052d7e82dae Mon Sep 17 00:00:00 2001 From: Renar Narubin Date: Tue, 23 Apr 2019 14:08:31 -0700 Subject: [PATCH] Add raw_iterator_cf_opt to the DB API The underlying functionality already existed, but it wasn't exposed to the top-level API. --- src/db.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/db.rs b/src/db.rs index 4c1e233..d82a8f2 100644 --- a/src/db.rs +++ b/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::new_cf(self, cf_handle, readopts) + } + pub fn snapshot(&self) -> Snapshot { Snapshot::new(self) }