Zen
A cross-platform functional programming language

transaction Class Reference

Intrinsic transaction type. More...

#include <zbl.hpp>

List of all members.

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.

Detailed Description

Intrinsic transaction type.

To be used as a local variable. If commit() is not called, the destructor calls rollback.


Constructor & Destructor Documentation

transaction ( database db) [inline, explicit]

Default constructor.

Parameters:
dbThe database for the transaction

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines