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.
◆ transaction()
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 |
◆ ~transaction()
sqlite::transaction::~transaction |
( |
| ) |
|
◆ begin()
Starts a transaction.
- Parameters
-
type | define the transaction type |
◆ commit()
void sqlite::transaction::commit |
( |
| ) |
|
◆ end()
void sqlite::transaction::end |
( |
| ) |
|
◆ exec()
void sqlite::transaction::exec |
( |
std::string const & | | ) |
|
|
private |
◆ isActive()
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.
◆ rollback()
void sqlite::transaction::rollback |
( |
| ) |
|
Rolls back a transaction.
◆ m_con
◆ m_isActive
bool sqlite::transaction::m_isActive |
|
private |
The documentation for this struct was generated from the following file: