LMDB
Macros
Cursor Flags

Macros

#define C_INITIALIZED   0x01
 
#define C_EOF   0x02
 
#define C_SUB   0x04
 
#define C_DEL   0x08
 
#define C_UNTRACK   0x40
 
#define C_WRITEMAP   MDB_TXN_WRITEMAP
 
#define C_ORIG_RDONLY   MDB_TXN_RDONLY
 

Detailed Description

Cursor state flags.

Macro Definition Documentation

 ◆ C_INITIALIZED

#define C_INITIALIZED   0x01

cursor has been initialized and is valid

 ◆ C_EOF

#define C_EOF   0x02

No more data

 ◆ C_SUB

#define C_SUB   0x04

Cursor is a sub-cursor

 ◆ C_DEL

#define C_DEL   0x08

last op was a cursor_del

 ◆ C_UNTRACK

#define C_UNTRACK   0x40

Un-track cursor when closing

 ◆ C_WRITEMAP

#define C_WRITEMAP   MDB_TXN_WRITEMAP

Copy of txn flag

 ◆ C_ORIG_RDONLY

#define C_ORIG_RDONLY   MDB_TXN_RDONLY

Read-only cursor into the txn's original snapshot in the map. Set for read-only txns, and in mdb_page_alloc() for FREE_DBI when MDB_DEVEL & 2. Only implements code which is necessary for this.