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§
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 as Table>::Key,
value: <T as Table>::Value,
) -> Result<(), DatabaseError>
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§
impl<T> DbDupCursorRW<T> for CursorMockwhere
T: DupSort,
impl<T: DupSort> DbDupCursorRW<T> for Cursor<RW, T>
Available on crate feature
mdbx
only.