hamsterdb Embedded Database 1.1.13
|
#include <hamsterdb.hpp>
Public Member Functions | |
txn (ham_txn_t *t=0) | |
void | abort () |
void | commit () |
ham_txn_t * | get_handle () |
Protected Attributes | |
ham_txn_t * | m_txn |
A Transaction class
This class wraps structures of type ham_txn_t.
Definition at line 237 of file hamsterdb.hpp.
ham::txn::txn | ( | ham_txn_t * | t = 0 | ) | [inline] |
Constructor
Definition at line 240 of file hamsterdb.hpp.
void ham::txn::abort | ( | ) | [inline] |
Abort the Transaction
Definition at line 244 of file hamsterdb.hpp.
References error(), ham_txn_abort(), and m_txn.
void ham::txn::commit | ( | ) | [inline] |
Commit the Transaction
Definition at line 252 of file hamsterdb.hpp.
References error(), ham_txn_commit(), and m_txn.
ham_txn_t* ham::txn::get_handle | ( | ) | [inline] |
Returns a pointer to the internal ham_txn_t structure.
Definition at line 260 of file hamsterdb.hpp.
References m_txn.
Referenced by ham::db::erase(), ham::db::find(), and ham::db::insert().
ham_txn_t* ham::txn::m_txn [protected] |
Definition at line 265 of file hamsterdb.hpp.
Referenced by abort(), commit(), and get_handle().