Module put

Source
Expand description

Flags used when calling the various put functions.

Structs§

Flags
Flags used when calling the various put functions.

Constants§

APPEND
Append the given key/data pair to the end of the database. This option allows fast bulk loading when keys are already known to be in the correct order. Loading unsorted keys with this flag will cause a KEYEXIST error.
APPENDDUP
As with APPEND above, but for sorted dup data.
NODUPDATA
Enter the new key/data pair only if it does not already appear in the database. This flag may only be specified if the database was opened with DUPSORT. The function will return KEYEXIST if the key/data pair already appears in the database.
NOOVERWRITE
Enter the new key/data pair only if the key does not already appear in the database. The function will return KEYEXIST if the key already appears in the database, even if the database supports duplicates (DUPSORT).