CppDB
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions
cppdb::transaction Class Reference

The transaction guard. More...

#include <cppdb/frontend.h>

List of all members.

Public Member Functions

 transaction (session &s)
 ~transaction ()
void commit ()
void rollback ()

Detailed Description

The transaction guard.

This class is RAII transaction guard that causes automatic transaction rollback on stack unwind, unless the transaction is committed


Constructor & Destructor Documentation

cppdb::transaction::transaction ( session s)

Begin a transaction on session s, calls s.begin()

If the transaction wasn't committed or rolled back calls session::rollback() for the session it was created with.


Member Function Documentation

Commit a transaction on the session. Calls session::commit() for the session it was created with.

Rollback a transaction on the session. Calls session::rollback() for the session it was created with.


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