RAII wrapper around sqlite3_session.
More...
#include <session.hpp>
RAII wrapper around sqlite3_session.
Call attach() or attach_all() to declare which tables to monitor, then retrieve accumulated changes via changeset() / patchset().
Definition at line 63 of file session.hpp.
◆ session() [1/3]
◆ ~session()
| sqlite::v2::session::~session |
( |
| ) |
|
◆ session() [2/3]
| sqlite::v2::session::session |
( |
session && | other | ) |
|
|
noexcept |
◆ session() [3/3]
| sqlite::v2::session::session |
( |
session const & | | ) |
|
|
delete |
◆ attach()
| void sqlite::v2::session::attach |
( |
std::string_view | table | ) |
|
◆ attach_all()
| void sqlite::v2::session::attach_all |
( |
| ) |
|
◆ changeset()
| std::vector< unsigned char > sqlite::v2::session::changeset |
( |
| ) |
|
Serializes the recorded changes in the standard changeset format.
◆ collect()
| std::vector< unsigned char > sqlite::v2::session::collect |
( |
bool | patchset | ) |
|
|
private |
◆ enable()
| void sqlite::v2::session::enable |
( |
bool | value | ) |
|
◆ native_handle()
| void * sqlite::v2::session::native_handle |
( |
| ) |
const |
|
noexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ patchset()
| std::vector< unsigned char > sqlite::v2::session::patchset |
( |
| ) |
|
Serializes the recorded changes in the smaller patchset format.
Referenced by collect().
◆ set_indirect()
| void sqlite::v2::session::set_indirect |
( |
bool | value | ) |
|
◆ con_
◆ handle_
| void* sqlite::v2::session::handle_ |
|
private |
The documentation for this struct was generated from the following file: