reth_db_api::cursor

Trait DbDupCursorRW

Source
pub trait DbDupCursorRW<T: DupSort> {
    // Required methods
    fn delete_current_duplicates(&mut self) -> Result<(), DatabaseError>;
    fn append_dup(
        &mut self,
        key: T::Key,
        value: T::Value,
    ) -> Result<(), DatabaseError>;
}
Expand description

Read Write Cursor over DupSorted table.

Required Methods§

Source

fn delete_current_duplicates(&mut self) -> Result<(), DatabaseError>

Delete all duplicate entries for current key.

Source

fn append_dup( &mut self, key: T::Key, value: T::Value, ) -> Result<(), DatabaseError>

Append duplicate value.

This is efficient for pre-sorted data. If the data is not pre-sorted, use insert.

Implementors§