|
VSQLite++
0.3
|
this is a helper class to handle transaction savepoints within SQLite More...
#include <savepoint.hpp>

Public Member Functions | |
| savepoint (connection &con, std::string const &name) | |
| constructor More... | |
| ~savepoint () | |
| destructor More... | |
| void | release () |
| Releases a previously created savepoint. More... | |
| void | rollback () |
| Roll the database status back to the position of the current saveopint. More... | |
| bool | isActive () const |
| Allow to check if savepoint handled by this object is currently active. More... | |
| std::string | getName () const |
| Returns a string containing the current savepoint name. More... | |
Private Member Functions | |
| void | exec (std::string const &) |
Private Attributes | |
| connection & | m_con |
| SQlite connection handler. More... | |
| std::string | m_name |
| The alias for the savepoint. More... | |
| bool | m_isActive |
if true the savepoint with alias m_name is still active (not currently released) More... | |
this is a helper class to handle transaction savepoints within SQLite
Definition at line 42 of file savepoint.hpp.
| sqlite::savepoint::savepoint | ( | connection & | con, |
| std::string const & | name | ||
| ) |
constructor
| con | a reference to the connection object where the transaction should be started/ended/committed or rolled back |
| name | alias for the savepoint |
| sqlite::savepoint::~savepoint | ( | ) |
destructor
|
private |
Referenced by getName().
|
inline |
Returns a string containing the current savepoint name.
Definition at line 79 of file savepoint.hpp.
References exec(), and m_name.

|
inline |
Allow to check if savepoint handled by this object is currently active.
true if savepoint is still active, false otherwise Definition at line 74 of file savepoint.hpp.
References m_isActive.
| void sqlite::savepoint::release | ( | ) |
Releases a previously created savepoint.
| void sqlite::savepoint::rollback | ( | ) |
Roll the database status back to the position of the current saveopint.
|
private |
SQlite connection handler.
Definition at line 83 of file savepoint.hpp.
|
private |
if true the savepoint with alias m_name is still active (not currently released)
Definition at line 85 of file savepoint.hpp.
Referenced by isActive().
|
private |
1.8.12