Skip to main content

MdbxWriteCursor

Type Alias MdbxWriteCursor 

Source
pub type MdbxWriteCursor<'txn, T> = MdbxCursor<'txn, RW, T>;
Expand description

Instantiation of the MdbxCursor for write transactions.

Aliased Type§

pub struct MdbxWriteCursor<'txn, T> { /* private fields */ }

Trait Implementations§

Source§

impl<'txn, T: DupTable> DupWriteCursor<'txn, T> for MdbxWriteCursor<'txn, T>

Source§

fn append_dup(&mut self, key: &T::Key, value: &T::Value)

Appends a key/value pair to the end of the database. This operation fails if the key is less than the last key.
Source§

fn remove_all_dup(&mut self)

Removes all duplicate values for the current key.
Source§

impl<'txn, T: Table> WriteCursor<'txn, T> for MdbxWriteCursor<'txn, T>

Source§

fn remove(&mut self)

Removes the current entry from the database. For a DupTable, this removes the current duplicate value.
Source§

fn append(&mut self, key: &T::Key, value: &T::Value)

Appends a key/value pair to the end of the database. This operation fails if the key is less than the last key.
Source§

fn put(&mut self, key: &T::Key, value: &T::Value)

Puts a new entry into the database. The cursor will be positioned on the new entry.