ckb_db::iter

Trait DBIterator

Source
pub trait DBIterator {
    // Required method
    fn iter_opt(
        &self,
        col: Col,
        mode: IteratorMode<'_>,
        readopts: &ReadOptions,
    ) -> Result<DBIter<'_>>;

    // Provided method
    fn iter(&self, col: Col, mode: IteratorMode<'_>) -> Result<DBIter<'_>> { ... }
}
Expand description

An iterator over a column family, with specifiable ranges and direction.

Required Methods§

Source

fn iter_opt( &self, col: Col, mode: IteratorMode<'_>, readopts: &ReadOptions, ) -> Result<DBIter<'_>>

Opens an iterator using the provided IteratorMode and ReadOptions. This is used when you want to iterate over a specific ColumnFamily with a modified ReadOptions

Provided Methods§

Source

fn iter(&self, col: Col, mode: IteratorMode<'_>) -> Result<DBIter<'_>>

Opens an iterator using the provided IteratorMode. This is used when you want to iterate over a specific ColumnFamily

Implementors§