boost_sqlite 1
A sqlite C++ library
|
A simple transaction guard implementing RAAI for savepoints. Savepoints can be used recursively. More...
#include <include/boost/sqlite/transaction.hpp>
Public Member Functions | |
savepoint (connection &conn, std::string name) | |
Create transaction guard and initiate it. | |
savepoint (connection &conn, std::string name, transaction::adopt_transaction_t) | |
Create savepoint guard on an existing savepoint. | |
~savepoint () noexcept(false) | |
rollback to the savepoint if not committed. | |
const std::string & | name () const |
The name of the savepoint. | |
void | commit () |
void | commit (system::error_code &ec, error_info &ei) |
void | release () |
void | release (system::error_code &ec, error_info &ei) |
void | rollback () |
void | rollback (system::error_code &ec, error_info &ei) |
Static Public Attributes | |
static constexpr transaction::adopt_transaction_t | adopt_transaction {} |
A tag to use, to adopt an already initiated transaction. | |
A simple transaction guard implementing RAAI for savepoints. Savepoints can be used recursively.
Definition at line 117 of file transaction.hpp.
|
inline |
Commit/Release the transaction.
Definition at line 145 of file transaction.hpp.
|
inline |
Commit/Release the transaction.
Definition at line 151 of file transaction.hpp.
|
inline |
Commit/Release the transaction.
Definition at line 157 of file transaction.hpp.
|
inline |
Commit/Release the transaction.
Definition at line 163 of file transaction.hpp.
|
inline |
Rollback the transaction explicitly.
Definition at line 172 of file transaction.hpp.
|
inline |
Rollback the transaction explicitly.
Definition at line 178 of file transaction.hpp.