enum LMDB::PutFlags

Defined in:

lmdb/database.cr

Enum Members

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.

None = 0
All = 458800

Instance Method Summary

Instance Method Detail

def append? #

[View source]
def append_dup? #

[View source]
def no_dup_data? #

[View source]
def no_overwrite? #

[View source]
def none? #

[View source]
def reserve? #

[View source]