RAII encapsulation of the SQLite Transactions. More...
#include <Transaction.h>
Public Member Functions | |
| transaction (dbconnection &connection, const transactiontype type) | |
| Implements a strictly scope-based SQLite transaction. More... | |
| virtual | ~transaction () noexcept |
| Destructor. More... | |
| virtual void | commit () |
| Commit the transaction. | |
RAII encapsulation of the SQLite Transactions.
Definition at line 26 of file Transaction.h.
| sqlite::transaction::transaction | ( | dbconnection & | connection, |
| const transactiontype | type | ||
| ) |
Implements a strictly scope-based SQLite transaction.
| [in] | connection | the database connection to begin the transaction on |
| [in] | type | the transaction type to be used. |
Definition at line 10 of file Transaction.cpp.
|
virtualnoexcept |
Destructor.
Safely rollback the transaction if it has not been commited.
Definition at line 19 of file Transaction.cpp.
1.8.6