Defines | |
#define | HAM_TXN_READ_ONLY 1 |
#define | HAM_TXN_FORCE_WRITE 1 |
Typedefs | |
typedef struct ham_txn_t | ham_txn_t |
Functions | |
HAM_EXPORT ham_status_t | ham_txn_begin (ham_txn_t **txn, ham_db_t *db, ham_u32_t flags) |
HAM_EXPORT ham_status_t | ham_txn_commit (ham_txn_t *txn, ham_u32_t flags) |
HAM_EXPORT ham_status_t | ham_txn_abort (ham_txn_t *txn, ham_u32_t flags) |
#define HAM_TXN_FORCE_WRITE 1 |
Flag for ham_txn_commit
Definition at line 1058 of file hamsterdb.h.
#define HAM_TXN_READ_ONLY 1 |
Flag for ham_txn_begin
Definition at line 1035 of file hamsterdb.h.
Definition at line 1006 of file hamsterdb.h.
HAM_EXPORT ham_status_t ham_txn_abort | ( | ham_txn_t * | txn, | |
ham_u32_t | flags | |||
) |
Aborts a Transaction
txn | Pointer to a Transaction structure | |
flags | Optional flags for aborting the Transaction, combined with bitwise OR. Unused, set to 0. |
Referenced by ham::txn::abort().
HAM_EXPORT ham_status_t ham_txn_begin | ( | ham_txn_t ** | txn, | |
ham_db_t * | db, | |||
ham_u32_t | flags | |||
) |
Begins a new Transaction
txn | Pointer to a pointer of a Transaction structure | |
db | A valid Database handle | |
flags | Optional flags for beginning the Transaction, combined with bitwise OR. Possible flags are:
|
Referenced by ham::db::begin().
HAM_EXPORT ham_status_t ham_txn_commit | ( | ham_txn_t * | txn, | |
ham_u32_t | flags | |||
) |
Commits a Transaction
txn | Pointer to a Transaction structure | |
flags | Optional flags for committing the Transaction, combined with bitwise OR. Unused, set to 0. |
Referenced by ham::txn::commit().