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