libsl3 1.2.41002
A C++ interface for SQLite
|
Transaction Guard. More...
#include <sl3/database.hpp>
Public Member Functions | |
Transaction (const Transaction &)=delete | |
Transaction & | operator= (const Transaction &)=delete |
Transaction & | operator= (Transaction &&)=delete |
Transaction (Transaction &&) noexcept | |
Move constructor A Transaction is movalble. | |
~Transaction () | |
Destructor. | |
void | commit () |
Commit the transaction. | |
Transaction Guard.
Scope guard for transaction. If an instance of this class goes out of scope and commit has not been called, it will call Rollback.
|
noexcept |
Move constructor A Transaction is movalble.
sl3::Database::Transaction::~Transaction | ( | ) |
Destructor.
Calls ROLLBACK if the Transaction commit has not been called.
void sl3::Database::Transaction::commit | ( | ) |
Commit the transaction.
Calls commit transaction.