upscaledb  2.1.13
Public Member Functions | Protected Attributes
upscaledb::txn Class Reference

#include <upscaledb.hpp>

Public Member Functions

 txn (ups_txn_t *t=0)
 
void abort ()
 
void commit ()
 
std::string get_name ()
 
ups_txn_tget_handle ()
 

Protected Attributes

ups_txn_tm_txn
 

Detailed Description

A Transaction class

This class wraps structures of type ups_txn_t.

Definition at line 232 of file upscaledb.hpp.

Constructor & Destructor Documentation

upscaledb::txn::txn ( ups_txn_t t = 0)
inline

Constructor

Definition at line 235 of file upscaledb.hpp.

Member Function Documentation

void upscaledb::txn::abort ( )
inline

Abort the Transaction

Definition at line 240 of file upscaledb.hpp.

References error(), m_txn, and ups_txn_abort().

void upscaledb::txn::commit ( )
inline

Commit the Transaction

Definition at line 247 of file upscaledb.hpp.

References error(), m_txn, and ups_txn_commit().

ups_txn_t* upscaledb::txn::get_handle ( )
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().

std::string upscaledb::txn::get_name ( )
inline

Definition at line 253 of file upscaledb.hpp.

References m_txn, and ups_txn_get_name().

Field Documentation

ups_txn_t* upscaledb::txn::m_txn
protected

Definition at line 264 of file upscaledb.hpp.

Referenced by abort(), commit(), get_handle(), and get_name().


The documentation for this class was generated from the following file: