hamsterdb Embedded Database
2.1.7
|
#include <hamsterdb.hpp>
Public Member Functions | |
txn (ham_txn_t *t=0) | |
void | abort () |
void | commit () |
std::string | get_name () |
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 235 of file hamsterdb.hpp.
|
inline |
Constructor
Definition at line 238 of file hamsterdb.hpp.
|
inline |
Abort the Transaction
Definition at line 243 of file hamsterdb.hpp.
References error(), ham_txn_abort(), and m_txn.
|
inline |
Commit the Transaction
Definition at line 250 of file hamsterdb.hpp.
References error(), ham_txn_commit(), and m_txn.
|
inline |
Returns a pointer to the internal ham_txn_t structure.
Definition at line 262 of file hamsterdb.hpp.
References m_txn.
Referenced by hamsterdb::db::erase(), hamsterdb::db::find(), and hamsterdb::db::insert().
|
inline |
Definition at line 256 of file hamsterdb.hpp.
References ham_txn_get_name(), and m_txn.
|
protected |
Definition at line 267 of file hamsterdb.hpp.
Referenced by abort(), commit(), get_handle(), and get_name().