enum LMDB::AbstractCursor::PutFlags

Defined in:

lmdb/cursor.cr

Enum Members

Current = 64

Replace the item at the current cursor position. The key must be provided.

NoDupData = 32

Store the record only if it does not appear in the database.

NoOverwrite = 16

Store the record only if the key does not already appear in the database. The data parameter will be set to point to the existing item.

Reserve = 65536

Reserve space for data, but don't store the given data. Returns a pointer to be fill later in the transaction.

Append = 131072

Store the record at the end of the database. Fast if keys are in the correct order.

AppendDup = 262144

As above, but for sorted duplicate data.

Multiple = 524288

Sort multiple contiguous data in a single request.

None = 0
All = 983152

Instance Method Summary

Instance Method Detail

def append? #

[View source]
def append_dup? #

[View source]
def current? #

[View source]
def multiple? #

[View source]
def no_dup_data? #

[View source]
def no_overwrite? #

[View source]
def none? #

[View source]
def reserve? #

[View source]