RAII wrapper around sqlite3_snapshot.
More...
#include <snapshot.hpp>
|
| static snapshot | take (connection &con, std::string_view schema="main") |
| | Capture a snapshot for the provided connection/schema.
|
|
| sqlite3_snapshot * | handle_ = nullptr |
RAII wrapper around sqlite3_snapshot.
Definition at line 62 of file snapshot.hpp.
◆ snapshot() [1/4]
| sqlite::v2::snapshot::snapshot |
( |
| ) |
|
|
default |
◆ ~snapshot()
| sqlite::v2::snapshot::~snapshot |
( |
| ) |
|
◆ snapshot() [2/4]
| sqlite::v2::snapshot::snapshot |
( |
snapshot const & | | ) |
|
|
delete |
◆ snapshot() [3/4]
| sqlite::v2::snapshot::snapshot |
( |
snapshot && | other | ) |
|
|
noexcept |
◆ snapshot() [4/4]
| sqlite::v2::snapshot::snapshot |
( |
sqlite3_snapshot * | handle | ) |
|
|
explicitprivate |
◆ native_handle()
| sqlite3_snapshot * sqlite::v2::snapshot::native_handle |
( |
| ) |
const |
|
inlinenoexcept |
◆ open()
| void sqlite::v2::snapshot::open |
( |
connection & | con, |
|
|
std::string_view | schema = "main" ) const |
Rewind an open read transaction to this snapshot.
References open().
Referenced by open().
◆ operator bool()
| sqlite::v2::snapshot::operator bool |
( |
| ) |
const |
|
inlineexplicitnoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ reset()
| void sqlite::v2::snapshot::reset |
( |
| ) |
|
|
noexcept |
Release the managed sqlite3_snapshot (if owned).
◆ take()
| snapshot sqlite::v2::snapshot::take |
( |
connection & | con, |
|
|
std::string_view | schema = "main" ) |
|
static |
Capture a snapshot for the provided connection/schema.
References snapshot(), and take().
Referenced by take().
◆ valid()
| bool sqlite::v2::snapshot::valid |
( |
| ) |
const |
|
inlinenoexcept |
◆ handle_
| sqlite3_snapshot* sqlite::v2::snapshot::handle_ = nullptr |
|
private |
The documentation for this struct was generated from the following file: