Opaque structure for navigating through a database. More...
Data Fields | |
MDB_cursor * | mc_next |
MDB_cursor * | mc_backup |
struct MDB_xcursor * | mc_xcursor |
MDB_txn * | mc_txn |
MDB_dbi | mc_dbi |
MDB_db * | mc_db |
MDB_dbx * | mc_dbx |
unsigned char * | mc_dbflag |
unsigned short | mc_snum |
unsigned short | mc_top |
unsigned int | mc_flags |
MDB_page * | mc_pg [CURSOR_STACK] |
indx_t | mc_ki [CURSOR_STACK] |
Opaque structure for navigating through a database.
Cursors are used for all DB operations. A cursor holds a path of (page pointer, key index) from the DB root to a position in the DB, plus other state. MDB_DUPSORT cursors include an xcursor to the current data item. Write txns track their cursors and keep them up to date when data moves. Exception: An xcursor's pointer to a P_SUBP page can be stale. (A node with F_DUPDATA but no F_SUBDATA contains a subpage).
Next cursor on this DB in this txn
Backup of the original cursor if this cursor is a shadow
struct MDB_xcursor* MDB_cursor::mc_xcursor [read] |
Context used for databases with MDB_DUPSORT, otherwise NULL
The transaction that owns this cursor
The database handle this cursor operates on
The database record for this cursor
The database auxiliary record for this cursor
unsigned char* MDB_cursor::mc_dbflag |
The Transaction DB Flags for this database
unsigned short MDB_cursor::mc_snum |
number of pushed pages
unsigned short MDB_cursor::mc_top |
index of top page, normally mc_snum-1
unsigned int MDB_cursor::mc_flags |
MDB_page* MDB_cursor::mc_pg[CURSOR_STACK] |
stack of pushed pages
indx_t MDB_cursor::mc_ki[CURSOR_STACK] |
stack of page indices