33#ifndef GUARD_SQLITE_TRANSACTION_HPP_INCLUDED
34#define GUARD_SQLITE_TRANSACTION_HPP_INCLUDED
120 void exec(std::string
const &);
transaction_type
Defines the kind of transaction to begin.
connection is used to open, close, attach and detach a database. Further it has to be passed to all c...
RAII wrapper around sqlite3_snapshot.
transaction is a helper class to start transactions within SQLite
void end()
Ends an transaction.
void begin(transaction_type type=transaction_type::undefined)
Starts a transaction.
void exec(std::string const &)
bool m_isEnding
true while COMMIT/ROLLBACK/END is running
void commit()
Commits a transaction.
void rollback()
Rolls back a transaction.
transaction(connection &con, transaction_type type=transaction_type::undefined)
constructor
bool m_isActive
if true there is a transaction currently opened
snapshot take_snapshot(std::string_view schema="main")
Capture a consistent snapshot for the current transaction.
void open_snapshot(snapshot const &snap, std::string_view schema="main")
Re-open this transaction so it reads from the supplied snapshot.
bool isActive() const
Allow to check if transaction handled by this object is currently active.