boost_sqlite 1
A sqlite C++ library
|
A simple transaction guard implementing RAAI for transactions. More...
#include <include/boost/sqlite/transaction.hpp>
Public Types | |
enum | behaviour |
The mode of the transaction. | |
Public Member Functions | |
transaction (connection &conn) | |
Create transaction guard and initiate a transaction. | |
transaction (connection &conn, adopt_transaction_t) | |
Create transaction guard on an existing transaction. | |
transaction (connection &conn, behaviour b) | |
Create transaction guard and initiate a transaction with the defined behaviour. | |
~transaction () noexcept(false) | |
rollback the transaction if not committed. | |
void | commit () |
void | commit (system::error_code &ec, error_info &ei) |
void | rollback () |
void | rollback (system::error_code &ec, error_info &ei) |
A simple transaction guard implementing RAAI for transactions.
Definition at line 29 of file transaction.hpp.
|
inline |
Commit the transaction.
Definition at line 71 of file transaction.hpp.
|
inline |
Commit the transaction.
Definition at line 77 of file transaction.hpp.
|
inline |
Rollback the transaction explicitly.
Definition at line 86 of file transaction.hpp.
|
inline |
Rollback the transaction explicitly.
Definition at line 92 of file transaction.hpp.