33#ifndef GUARD_SQLITE_SESSION_HPP_INCLUDED
34#define GUARD_SQLITE_SESSION_HPP_INCLUDED
void apply_patchset(connection &con, std::span< const unsigned char > data)
Applies a patchset produced by session::patchset onto con.
void apply_changeset(connection &con, std::span< const unsigned char > data)
Applies a changeset produced by session::changeset onto con.
bool sessions_supported() noexcept
Returns true when SQLite sessions API is available.
connection is used to open, close, attach and detach a database. Further it has to be passed to all c...
Configuration flags supplied when opening a new change session.
RAII wrapper around sqlite3_session.
std::vector< unsigned char > collect(bool patchset)
session & operator=(session const &)=delete
session(session const &)=delete
session(connection &con, std::string_view schema="main", session_options options={})
std::vector< unsigned char > patchset()
Serializes the recorded changes in the smaller patchset format.
std::vector< unsigned char > changeset()
Serializes the recorded changes in the standard changeset format.
session & operator=(session &&other) noexcept
void attach(std::string_view table)
void * native_handle() const noexcept
void set_indirect(bool value)
session(session &&other) noexcept