VSQLite++  0.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sqlite::transaction Struct Reference

transaction is a helper class to start transactions within SQLite More...

#include <transaction.hpp>

Collaboration diagram for sqlite::transaction:
Collaboration graph

Public Member Functions

 transaction (connection &con)
 ~transaction ()
void begin ()
 Starts a transaction.
void end ()
 Ends an transaction.
void commit ()
 Commits a transaction.
void rollback ()
 Rolls back a transaction.

Private Member Functions

void exec (std::string const &)

Private Attributes


Detailed Description

transaction is a helper class to start transactions within SQLite

Definition at line 41 of file transaction.hpp.

Constructor & Destructor Documentation

sqlite::transaction::transaction ( connection con)


cona reference to the connection object where the transaction should be started/ended/committed or rolled back in
sqlite::transaction::~transaction ( )


Member Function Documentation

void sqlite::transaction::begin ( )

Starts a transaction.

void sqlite::transaction::commit ( )

Commits a transaction.

void sqlite::transaction::end ( )

Ends an transaction.

void sqlite::transaction::exec ( std::string const &  )
void sqlite::transaction::rollback ( )

Rolls back a transaction.

Member Data Documentation

connection& sqlite::transaction::m_con

Definition at line 75 of file transaction.hpp.

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