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§
Sourcefn delete_current_duplicates(&mut self) -> Result<(), DatabaseError>
fn delete_current_duplicates(&mut self) -> Result<(), DatabaseError>
Delete all duplicate entries for current key.
Sourcefn append_dup(
&mut self,
key: T::Key,
value: T::Value,
) -> Result<(), DatabaseError>
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
.