upscaledb  2.2.1
Public Member Functions | Private 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 ()
 

Private Attributes

ups_txn_t_txn
 

Detailed Description

A Transaction class

This class wraps structures of type ups_txn_t.

Definition at line 231 of file upscaledb.hpp.

Constructor & Destructor Documentation

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

Constructor

Definition at line 234 of file upscaledb.hpp.

Member Function Documentation

void upscaledb::txn::abort ( )
inline

Abort the Txn

Definition at line 239 of file upscaledb.hpp.

References upscaledb::error::error(), and ups_txn_abort().

void upscaledb::txn::commit ( )
inline

Commit the Txn

Definition at line 246 of file upscaledb.hpp.

References upscaledb::error::error(), 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 258 of file upscaledb.hpp.

Referenced by upscaledb::db::erase(), upscaledb::db::find(), and upscaledb::db::insert().

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

Definition at line 252 of file upscaledb.hpp.

References ups_txn_get_name().

Field Documentation

ups_txn_t* upscaledb::txn::_txn
private

Definition at line 263 of file upscaledb.hpp.


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