|
lintel 0.2.0
|
#include <Transaction.h>
Public Member Functions | |
| Transaction (const Connection &connection) | |
| Transaction (Transaction &transaction)=delete | |
| void | start () |
| void | commit () |
| void | save (const std::string &savepoint) const |
| void | rollback () |
| void | rollbackTo (const std::string &savepoint) const |
Unified database transaction wrapping PostgreSQL or SQLite transactions.
|
explicit |
Constructs a Transaction bound to the given connection.
| connection | the database connection |
|
delete |
| void lintel::db::Transaction::commit | ( | ) |
Commits the transaction.
| void lintel::db::Transaction::rollback | ( | ) |
Rolls back the entire transaction.
Rolls back to a named savepoint.
| savepoint | the savepoint name |
Creates a savepoint within the transaction.
| savepoint | the savepoint name |
| void lintel::db::Transaction::start | ( | ) |
Begins the transaction.