libsqlite3x
2007.10.18
|
Manages an sqlite3 transaction. More...
#include <sqlite3x.hpp>
Public Member Functions | |
sqlite3_transaction (sqlite3_connection &con, bool start=true) | |
Opens a transaction for the given connection. More... | |
~sqlite3_transaction () | |
If destructed before commit() is called, rollback() is called. | |
void | begin () |
Starts a transaction. | |
void | commit () |
Commits a transaction. | |
void | rollback () |
Rolls back a transaction with a commit. | |
Manages an sqlite3 transaction.
Remember that sqlite3 does not support nested transactions.
All functions of this class throw on error.
Definition at line 424 of file sqlite3x.hpp.
sqlite3x::sqlite3_transaction::sqlite3_transaction | ( | sqlite3_connection & | con, |
bool | start = true |
||
) |
Opens a transaction for the given connection.
If start==true (the default) then this->begin() is called.
Definition at line 31 of file sqlite3x_transaction.cpp.
References begin().