Defines | |
| #define | RDB_tx_db(txp) ((txp)->dbp) |
| #define | RDB_tx_env(txp) ((txp)->envp) |
Functions | |
| int | RDB_begin_tx (RDB_exec_context *ecp, RDB_transaction *txp, RDB_database *dbp, RDB_transaction *parentp) |
| int | RDB_commit (RDB_exec_context *ecp, RDB_transaction *txp) |
| int | RDB_rollback (RDB_exec_context *ecp, RDB_transaction *txp) |
| int | RDB_rollback_all (RDB_exec_context *ecp, RDB_transaction *txp) |
| RDB_bool | RDB_tx_is_running (RDB_transaction *txp) |
| #define RDB_tx_db | ( | txp | ) | ((txp)->dbp) |
Return the database the transaction pointed to by txp interacts with.
| #define RDB_tx_env | ( | txp | ) | ((txp)->envp) |
Return the database environment associated with the transaction.
| int RDB_begin_tx | ( | RDB_exec_context * | ecp, | |
| RDB_transaction * | txp, | |||
| RDB_database * | dbp, | |||
| RDB_transaction * | parentp | |||
| ) |
RDB_begin_tx starts a transaction which interacts with the database specified by dbp.
If parentp is not NULL, the new transaction is a subtransaction of the transaction specified by parentp.
The execution of a parent transaction is suspended while a child transaction executes. It is an error to perform an operation under the control of a transaction which has a running child transaction.
The call may fail for a system error.
| int RDB_commit | ( | RDB_exec_context * | ecp, | |
| RDB_transaction * | txp | |||
| ) |
RDB_commit commits the transaction pointed to by txp.
The call may also fail for a system error.
| int RDB_rollback | ( | RDB_exec_context * | ecp, | |
| RDB_transaction * | txp | |||
| ) |
RDB_rollback terminates the transaction pointed to by txp and rolls back all changes made by this transaction and its subtransactions.
The call may also fail for a system error.
| RDB_bool RDB_tx_is_running | ( | RDB_transaction * | txp | ) |
RDB_tx_is_running returns if txp points to a running transaction.
1.5.1