reth_db::cursor

Trait DbDupCursorRW

Source
pub trait DbDupCursorRW<T>
where T: DupSort,
{ // Required methods fn delete_current_duplicates(&mut self) -> Result<(), DatabaseError>; fn append_dup( &mut self, key: <T as Table>::Key, value: <T as Table>::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 as Table>::Key, value: <T as Table>::Value, ) -> Result<(), DatabaseError>

Append duplicate value.

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

Implementors§

Source§

impl<T> DbDupCursorRW<T> for CursorMock
where T: DupSort,

Source§

impl<T: DupSort> DbDupCursorRW<T> for Cursor<RW, T>

Available on crate feature mdbx only.