|
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 | |
| ~savepoint () | |
| destructor | |
| void | release () |
| Releases a previously created savepoint. | |
| void | rollback () |
| Roll the database status back to the position of the current saveopint. | |
| bool | isActive () const |
| Allow to check if savepoint handled by this object is currently active. | |
| std::string | getName () const |
| Returns a string containing the current savepoint name. | |
Private Member Functions | |
| void | exec (std::string const &) |
Private Attributes | |
| connection & | m_con |
| SQlite connection handler. | |
| std::string | m_name |
| The alias for the savepoint. | |
| bool | m_isActive |
if true the savepoint with alias m_name is still active (not currently released) | |
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 |
destructor
| void sqlite::savepoint::exec | ( | std::string const & | ) | [private] |
| std::string sqlite::savepoint::getName | ( | ) | const [inline] |
Returns a string containing the current savepoint name.
Definition at line 79 of file savepoint.hpp.
References m_name.
| bool sqlite::savepoint::isActive | ( | ) | const [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.
connection& sqlite::savepoint::m_con [private] |
SQlite connection handler.
Definition at line 83 of file savepoint.hpp.
bool sqlite::savepoint::m_isActive [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().
std::string sqlite::savepoint::m_name [private] |
1.7.6.1