transaction is a helper class to start transactions within SQLite
More...
#include <transaction.hpp>
|
void | exec (std::string const &) |
|
transaction is a helper class to start transactions within SQLite
Definition at line 62 of file transaction.hpp.
constructor
- Parameters
-
con | a reference to the connection object where the transaction should be started/ended/committed or rolled back |
type | define the transaction type |
sqlite::transaction::~transaction |
( |
| ) |
|
Starts a transaction.
- Parameters
-
type | define the transaction type |
void sqlite::transaction::commit |
( |
| ) |
|
void sqlite::transaction::end |
( |
| ) |
|
void sqlite::transaction::exec |
( |
std::string const & |
| ) |
|
|
private |
bool sqlite::transaction::isActive |
( |
| ) |
const |
|
inline |
Allow to check if transaction handled by this object is currently active.
- Returns
true
if transaction is still active, false
otherwise
Definition at line 100 of file transaction.hpp.
References m_isActive.
void sqlite::transaction::rollback |
( |
| ) |
|
Rolls back a transaction.
bool sqlite::transaction::m_isActive |
|
private |
The documentation for this struct was generated from the following file: