Expand description
Flags used when opening databases.
Structs§
- Flags
- Flags used when opening databases.
Constants§
- CREATE
- Create the named database if it doesn’t exist. This option is not allowed in a read-only environment.
- DUPFIXED
- 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, theget_multipleandnext_multiplecursor operations may be used to retrieve multiple items at once. - DUPSORT
- 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.
- INTEGERDUP
- This option specifies that duplicate data items are binary
integers, similar to
INTEGERKEYkeys. - INTEGERKEY
- Keys are binary integers in native byte order, either
libc::c_uintorlibc::size_t, and will be sorted as such. The keys must all be of the same size. - REVERSEDUP
- This option specifies that duplicate data items should be compared as strings in reverse order.
- REVERSEKEY
- 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.