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