libdballe  7.19
Public Member Functions | List of all members
dballe::Transaction Class Referenceabstract

A RAII transaction interface. More...

#include <transaction.h>

Inheritance diagram for dballe::Transaction:
dballe::db::v7::Transaction dballe::sql::Transaction

Public Member Functions

virtual void commit ()=0
 Commit this transaction.
 
virtual void rollback ()=0
 Roll back this transaction.
 

Detailed Description

A RAII transaction interface.

The transaction will be valid during the lifetime of this object.

You can commit or rollback the transaction using its methods. If at destruction time the transaction has not been committed or rolled back, a rollback is automatically performed.


The documentation for this class was generated from the following file: