diff --git a/src/db.rs b/src/db.rs index d7b26f4..3550c3c 100644 --- a/src/db.rs +++ b/src/db.rs @@ -1093,6 +1093,17 @@ impl DB { DBIterator::new(self, &readopts, mode) } + /// Opens an interator using the provided ReadOptions. + /// This is used when you want to iterate over a specific ColumnFamily with a modified ReadOptions + pub fn iterator_cf_opt( + &self, + cf_handle: ColumnFamily, + readopts: &ReadOptions, + mode: IteratorMode, + ) -> Result { + DBIterator::new_cf(self, cf_handle, &readopts, mode) + } + /// Opens an interator with `set_total_order_seek` enabled. /// This must be used to iterate across prefixes when `set_memtable_factory` has been called /// with a Hash-based implementation.