VSQLite++ 0.3
Loading...
Searching...
No Matches
session.hpp File Reference

Thin RAII layer over the SQLite sessions/changeset extension. More...

#include <span>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for session.hpp:

Go to the source code of this file.

Classes

struct  sqlite::v2::session_options
 Configuration flags supplied when opening a new change session. More...
struct  sqlite::v2::session
 RAII wrapper around sqlite3_session. More...

Namespaces

namespace  sqlite
namespace  sqlite::v2

Functions

bool sqlite::v2::sessions_supported () noexcept
 Returns true when SQLite sessions API is available.
void sqlite::v2::apply_changeset (connection &con, std::span< const unsigned char > data)
 Applies a changeset produced by session::changeset onto con.
void sqlite::v2::apply_patchset (connection &con, std::span< const unsigned char > data)
 Applies a patchset produced by session::patchset onto con.

Detailed Description

Thin RAII layer over the SQLite sessions/changeset extension.

Sessions capture row-level changes in memory so they can later be applied or merged across connections, which is useful for sync workflows and replicating WAL streams.

Definition in file session.hpp.