struct LMDB::Cursor(K, V)

Overview

Read/write cursor.

Included Modules

Defined in:

lmdb/cursor.cr

Constructors

Instance Method Summary

Instance methods inherited from module LMDB::CursorPut(K, V)

delete delete, put(key : Pointer(K) | Slice(K) | Array(K) | StaticArray(K, _), value : Pointer(V) | Slice(V) | Array(V) | StaticArray(V, _), flags : Cursor::PutFlags = Cursor::PutFlags::None)
put(key : Pointer(K) | Slice(K) | Array(K) | StaticArray(K, _), val : V, flags : Cursor::PutFlags = Cursor::PutFlags::None) forall K, V
put(key : K, val : Pointer(V) | Slice(V) | Array(V) | StaticArray(V, _), flags : Cursor::PutFlags = Cursor::PutFlags::None) forall K, V
put(key : K, val : V, flags : Cursor::PutFlags = Cursor::PutFlags::None) forall K, V
put

Instance methods inherited from module LMDB::CursorGet(K, V)

first : Tuple(K, V) first, get : Tuple(K, V) get, get? : Tuple(K, V) | Nil get?, last : Tuple(K, V) last, last? : Tuple(K, V) | Nil last?, move_to(key : Pointer(K) | Slice(K) | Array(K) | StaticArray(K, _)) : V
move_to(key : K) : V
move_to
, next : Tuple(K, V) next, next? : Tuple(K, V) | Nil next?, prev : Tuple(K, V) prev, prev? : Tuple(K, V) | Nil prev?, set_range(key : Pointer(K) | Slice(K) | Array(K) | StaticArray(K, _)) : V
set_range(key : K) : V
set_range

Instance methods inherited from struct LMDB::AbstractCursor

close close, readonly? : Bool readonly?, to_unsafe : Pointer(Void) to_unsafe

Constructor methods inherited from struct LMDB::AbstractCursor

new(transaction : AbstractTransaction, database : Database) new

Constructor Detail

def self.new(transaction : AbstractTransaction, database : Database) #

[View source]

Instance Method Detail

def readonly? : Bool #
Description copied from struct LMDB::AbstractCursor

Whether self is a readonly cursor.


[View source]