32#ifndef GUARD_SQLITE_SAVEPOINT_HPP_INCLUDED
33#define GUARD_SQLITE_SAVEPOINT_HPP_INCLUDED
99 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
bool isActive() const
Allow to check if savepoint handled by this object is currently active.
connection & m_con
SQlite connection handler.
savepoint(connection &con, std::string const &name)
constructor
void rollback()
Roll the database status back to the position of the current saveopint.
void open_snapshot(snapshot const &snap, std::string_view schema="main")
snapshot take_snapshot(std::string_view schema="main")
std::string m_name
The alias for the savepoint.
void exec(std::string const &)
void release()
Releases a previously created savepoint.
std::string getName() const
Returns a string containing the current savepoint name.
RAII wrapper around sqlite3_snapshot.