class

Lmdb::Cursor

Inherits Lmdb::Base / Reference / Object

Constants

DUPE_OPS = [LibLmdb::CursorOp::MDB_FIRST_DUP, LibLmdb::CursorOp::MDB_LAST_DUP, LibLmdb::CursorOp::MDB_NEXT_DUP, LibLmdb::CursorOp::MDB_PREV_DUP, LibLmdb::CursorOp::MDB_GET_BOTH, LibLmdb::CursorOp::MDB_GET_BOTH_RANGE]

Constructors

new(transaction : Lmdb::Transaction, db : Lmdb::Database)
Source

Instance methods

close

##/**@brief Close a cursor handle. *

  • The cursor handle will be freed and must not be used again after this call.
  • Its transaction must still be live if it is a write-transaction.
Source
count
Source
current
Source
database
Source
del

Delete current key/data pair *

  • This function deletes the key/data pair to which the cursor refers.
Source
del_all
  • delete all of the data items for the current key.
  •   This flag may only be specified if the database was opened with #MDB_DUPSORT.
Source
find_ge(key : Lmdb::KeyTypes, val : Lmdb::ValTypes)

This version of the call seeks the value that's greater or equal to the one given FOR THE EXACT KEY. It only looks for the records with the key specified. Only for #MDB_DUPSORT */

Source
find_ge(key : Lmdb::KeyTypes)

Position at first key greater than or equal to specified key.

Source
first

Move to the first key in the database Returns false result if database is empty

Source
first_dup
Source
get_op(key : Lmdb::KeyTypes, data : Lmdb::ValTypes, operation = LibLmdb::CursorOp::None)
Source
last

Move to the last key in the database, returning True on success or False if the database is empty.

Source
last_dup
Source
next
Source
next_dup
Source
next_no_dup

Move to the next highest key value

Source
prev
Source
prev_dup
Source
prev_no_dup
Source
put(key : Lmdb::KeyTypes, data : Lmdb::ValTypes, put_flags = Lmdb::Flags::Put::None)
Source
transaction
Source