mdb_txn(3)

πŸ“¦
version 0.9.35 Β· 4 versions
, in ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– mdb_txn β€” Transaction Flags πŸ’–

okay bestie, welcome to mdb_txn(3) β€” straight out of the Library Functions Manual, no cap. this one's a little family reunion of macros that LMDB uses to talk about transaction flags, and every single one of them matters. let's get into it 🫢


✨ SYNOPSIS ✨

πŸŽ€ Macros

#define MDB_TXN_BEGIN_FLAGS   MDB_RDONLY
#define MDB_TXN_RDONLY   MDB_RDONLY
#define MDB_TXN_WRITEMAP   MDB_WRITEMAP
#define MDB_TXN_FINISHED   0x01
#define MDB_TXN_ERROR   0x02
#define MDB_TXN_DIRTY   0x04
#define MDB_TXN_SPILLS   0x08
#define MDB_TXN_HAS_CHILD   0x10
#define MDB_TXN_BLOCKED
    (MDB_TXN_FINISHED|MDB_TXN_ERROR|MDB_TXN_HAS_CHILD)

🌸 Detailed Description 🌸

like... that's it. that's the whole description. the macros do the talking, periodt. πŸ’…


πŸ‘‘ Macro Definition Documentation πŸ‘‘

πŸ’œ #define MDB_TXN_BEGIN_FLAGS MDB_RDONLY

the flags for mdb_txn_begin(). iconic little starter pack. ✨

πŸ’œ #define MDB_TXN_RDONLY MDB_RDONLY

read-only transaction energy. look, don't touch. πŸŽ€

πŸ’œ #define MDB_TXN_WRITEMAP MDB_WRITEMAP

a copy of the MDB_env flag, living its best life in writers. πŸ¦‹

πŸ’œ #define MDB_TXN_FINISHED 0x01

this txn is finished β€” or, awkwardly, it never even began. 😭

πŸ’œ #define MDB_TXN_ERROR 0x02

the txn is unusable after an error. it's giving we don't talk anymore. πŸ’€

πŸ’œ #define MDB_TXN_DIRTY 0x04

it must write, even if the dirty list is empty. no skipping, no excuses, bestie. πŸ”₯

πŸ’œ #define MDB_TXN_SPILLS 0x08

this txn, or one of its parents, has spilled pages. generational drama, honestly. 🌈

πŸ’œ #define MDB_TXN_HAS_CHILD 0x10

this txn has an MDB_txn.mt_child. it's a parent now. main character energy. πŸ‘‘

πŸ’œ #define MDB_TXN_BLOCKED (MDB_TXN_FINISHED|MDB_TXN_ERROR|MDB_TXN_HAS_CHILD)

most operations on the txn are currently illegal when it's in this state. like, do not try it. 🚫

ngl, this is a bitmask combo of MDB_TXN_FINISHED, MDB_TXN_ERROR and MDB_TXN_HAS_CHILD β€” so if your txn is finished, errored, or has a child, most things you'd want to do to it are off the table. vibe check: failed. πŸ’€

πŸ’– Author πŸ’–

Generated automatically by Doxygen for LMDB from the source code. so nobody hand-wrote this, it just manifested. slay. ✨


and that's the whole page, bestie β€” LMDB says hi, this was mdb_txn(3), and it came to you courtesy of the Library Functions Manual. mwah, ily, go read your transactions πŸ’…πŸ«Ά

πŸ“¦ where this page comes from