Struct lmdb_rs::core::Cursor [] [src]

pub struct Cursor<'txn> { /* fields omitted */ }

Methods

impl<'txn> Cursor<'txn>
[src]

Moves cursor to first entry

Moves cursor to last entry

Moves cursor to first entry for key if it exists

Moves cursor to first entry for key greater than or equal to ke

Moves cursor to specific item (for example, if cursor already points to a correct key and you need to delete a specific item through cursor)

Moves cursor to nearest item.

Moves cursor to next key, i.e. skip items with duplicate keys

Moves cursor to next item with the same key as current

Moves cursor to prev entry, i.e. skips items with duplicate keys

Moves cursor to prev item with the same key as current

Moves cursor to first item with the same key as current

Moves cursor to last item with the same key as current

Retrieves current key/value as tuple

Retrieves current value

Retrieves current key

Overwrites value for current item Note: overwrites max cur_value.len() bytes

Adds a new item when created with allowed duplicates

Deletes current key

Deletes only current item

Note that it doesn't check anything so it is caller responsibility to make sure that correct item is deleted if, for example, caller wants to delete only items of current key

Deletes all items with same key as current

Returns count of items with the same key as current

Trait Implementations

impl<'txn> Debug for Cursor<'txn>
[src]

Formats the value using the given formatter.

impl<'txn> Drop for Cursor<'txn>
[src]

A method called when the value goes out of scope. Read more