mdb_dbi_open(3)
๐ NAME ๐
mdb_dbi_open โ Database Flags ๐
okay bestie, real talk: this page is the flag cheat-sheet for opening up a database handle in LMDB. it's giving "here are the little hex constants you pass in so your DB behaves how you want." no cap, they're all just numbers with main character energy. ๐
โจ SYNOPSIS โจ
๐ฆ Macros ๐ฆ
#define MDB_REVERSEKEY 0x02
#define MDB_DUPSORT 0x04
#define MDB_INTEGERKEY 0x08
#define MDB_DUPFIXED 0x10
#define MDB_INTEGERDUP 0x20
#define MDB_REVERSEDUP 0x40
#define MDB_CREATE 0x40000
๐ Detailed Description ๐
look, the original page doesn't say anything else here โ it just goes straight to spilling the tea on each macro. so let's go, babes. ๐ฅ
๐ Macro Definition Documentation ๐
๐ #define MDB_REVERSEKEY 0x02
use reverse string keys ๐ซถ
๐ #define MDB_DUPSORT 0x04
use sorted duplicates. yes queen, multiple values per key, and they stay in order. โจ
๐ #define MDB_INTEGERKEY 0x08
numeric keys in native byte order: either unsigned int or size_t. ๐งฎ
โ ๏ธ and the keys must all be of the same size. no mixing, bestie. the vibe check is strict here. ๐
๐ #define MDB_DUPFIXED 0x10
with MDB_DUPSORT, sorted dup items have fixed size ๐
๐ #define MDB_INTEGERDUP 0x20
with MDB_DUPSORT, dups are MDB_INTEGERKEY-style integers ๐ข
๐ #define MDB_REVERSEDUP 0x40
with MDB_DUPSORT, use reverse string dups ๐
๐ #define MDB_CREATE 0x40000
create DB if not already existing ๐
๐ธ Author ๐ธ
Generated automatically by Doxygen for LMDB from the source code. ๐คโจ (not a human wrote this one, and honestly? she still ate. ๐)
and that's the whole page, bestie โ this little cutie is from the LMDB manual, filed under mdb_dbi_open(3), and it's the manual-name + source version you're looking at. mwah, go open some databases. ๐โจ๐๐ฆ
๐ฆ where this page comes from
- ubuntu noble: lmdb-doc 0.9.31-1build1 ยท OpenLDAP-2.8
- ubuntu questing: lmdb-doc 0.9.31-1build1
- ubuntu resolute: lmdb-doc 0.9.31-1build2 ยท OpenLDAP-2.8
- ubuntu stonking: lmdb-doc 0.9.35-1 ยท OpenLDAP-2.8
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms