SQLiteXX  0.1.0
 All Classes Namespaces Files Functions Enumerations Enumerator
Public Member Functions | List of all members
sqlite::transaction Class Reference

RAII encapsulation of the SQLite Transactions. More...

#include <Transaction.h>

Inheritance diagram for sqlite::transaction:
sqlite::deferred_transaction sqlite::exclusive_transaction sqlite::immediate_transaction

Public Member Functions

 transaction (dbconnection &connection, const transactiontype type)
 Implements a strictly scope-based SQLite transaction. More...
 
virtual ~transaction () noexcept
 Destructor. More...
 
virtual void commit ()
 Commit the transaction.
 

Detailed Description

RAII encapsulation of the SQLite Transactions.

Definition at line 26 of file Transaction.h.

Constructor & Destructor Documentation

sqlite::transaction::transaction ( dbconnection connection,
const transactiontype  type 
)

Implements a strictly scope-based SQLite transaction.

Parameters
[in]connectionthe database connection to begin the transaction on
[in]typethe transaction type to be used.

Definition at line 10 of file Transaction.cpp.

sqlite::transaction::~transaction ( )
virtualnoexcept

Destructor.

Safely rollback the transaction if it has not been commited.

Definition at line 19 of file Transaction.cpp.


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