32 #ifndef GUARD_SQLITE_SAVEPOINT_HPP_INCLUDED
33 #define GUARD_SQLITE_SAVEPOINT_HPP_INCLUDED
81 void exec(std::string
const &);
connection is used to open, close, attach and detach a database. Further it has to be passed to all c...
this is a helper class to handle transaction savepoints within SQLite
connection & m_con
SQlite connection handler.
void release()
Releases a previously created savepoint.
bool m_isActive
if true the savepoint with alias m_name is still active (not currently released)
void exec(std::string const &)
void rollback()
Roll the database status back to the position of the current saveopint.
std::string m_name
The alias for the savepoint.
bool isActive() const
Allow to check if savepoint handled by this object is currently active.
savepoint(connection &con, std::string const &name)
constructor
std::string getName() const
Returns a string containing the current savepoint name.