Module ord_lmdb_zero::db
source · [−]Expand description
Flags used when opening databases.
Structs
Flags used when opening databases.
Constants
Create the named database if it doesn’t exist. This option is not allowed in a read-only environment.
This flag may only be used in combination with DUPSORT
. This
option tells the library that the data items for this database
are all the same size, which allows further optimizations in
storage and retrieval. When all data items are the same size,
the get_multiple
and next_multiple
cursor operations may be
used to retrieve multiple items at once.
Duplicate keys may be used in the database. (Or, from another perspective, keys may have multiple data items, stored in sorted order.) By default keys must be unique and may have only a single data item.
This option specifies that duplicate data items are binary
integers, similar to INTEGERKEY
keys.
Keys are binary integers in native byte order, either
libc::c_uint
or libc::size_t
, and will be sorted as such.
The keys must all be of the same size.
This option specifies that duplicate data items should be compared as strings in reverse order.
Keys are strings to be compared in reverse order, from the end of the strings to the beginning. By default, Keys are treated as strings and compared from beginning to end.