Zen
A cross-platform functional programming language
|
Intrinsic transaction type. More...
#include <zbl.hpp>
Public Member Functions | |
transaction (database &db) | |
Default constructor. | |
~transaction () | |
Destructor. | |
void | commit () |
Commit a transaction. | |
Private Attributes | |
database & | _db |
The database. | |
bool | _committed |
True if commited. |
Intrinsic transaction type.
To be used as a local variable. If commit() is not called, the destructor calls rollback.
transaction | ( | database & | db | ) | [inline, explicit] |
Default constructor.
db | The database for the transaction |