mdb_dbi_open(3)

๐Ÿ“ฆ
version 0.9.35 ยท 4 versions
, in ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

๐ŸŽ€ 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