|
lintel 0.2.0
|
#include <Transaction.h>
Public Member Functions | |
| Transaction (const Connection &tempConnection) | |
| Transaction (Transaction &transaction)=delete | |
| void | start () |
| void | commit () |
| void | save (const std::string &savepoint) const |
| void | rollback () |
| void | rollbackTo (const std::string &savepoint) const |
| ~Transaction () | |
| void | isFinished () const |
Manages an SQLite database transaction with commit, rollback, and savepoint support.
|
explicit |
Constructs a Transaction bound to the given connection.
| tempConnection | the SQLite connection |
|
delete |
| lintel::sqlite::Transaction::~Transaction | ( | ) |
Destructor.
| void lintel::sqlite::Transaction::commit | ( | ) |
Commits the transaction.
| void lintel::sqlite::Transaction::isFinished | ( | ) | const |
| db::SQLException | if the transaction was already committed or rolled back |
| void lintel::sqlite::Transaction::rollback | ( | ) |
Rolls back the transaction.
Rolls back to a named savepoint.
| savepoint | the savepoint name |
Creates a savepoint within the transaction.
| savepoint | the savepoint name |
| void lintel::sqlite::Transaction::start | ( | ) |
Begins the transaction.