upscaledb
2.1.13
|
#include <upscaledb.hpp>
Public Member Functions | |
txn (ups_txn_t *t=0) | |
void | abort () |
void | commit () |
std::string | get_name () |
ups_txn_t * | get_handle () |
Protected Attributes | |
ups_txn_t * | m_txn |
A Transaction class
This class wraps structures of type ups_txn_t.
Definition at line 232 of file upscaledb.hpp.
|
inline |
Constructor
Definition at line 235 of file upscaledb.hpp.
|
inline |
Abort the Transaction
Definition at line 240 of file upscaledb.hpp.
References error(), m_txn, and ups_txn_abort().
|
inline |
Commit the Transaction
Definition at line 247 of file upscaledb.hpp.
References error(), m_txn, and ups_txn_commit().
|
inline |
Returns a pointer to the internal ups_txn_t structure.
Definition at line 259 of file upscaledb.hpp.
References m_txn.
Referenced by upscaledb::db::erase(), upscaledb::db::find(), and upscaledb::db::insert().
|
inline |
Definition at line 253 of file upscaledb.hpp.
References m_txn, and ups_txn_get_name().
|
protected |
Definition at line 264 of file upscaledb.hpp.
Referenced by abort(), commit(), get_handle(), and get_name().