|
VSQLite++ 0.3
|
RAII wrapper around sqlite3_snapshot. More...
#include <snapshot.hpp>

Public Member Functions | |
| snapshot ()=default | |
| ~snapshot () | |
| snapshot (snapshot const &)=delete | |
| snapshot & | operator= (snapshot const &)=delete |
| snapshot (snapshot &&other) noexcept | |
| snapshot & | operator= (snapshot &&other) noexcept |
| bool | valid () const noexcept |
| operator bool () const noexcept | |
| void | reset () noexcept |
| Release the managed sqlite3_snapshot (if owned). | |
| void | open (connection &con, std::string_view schema="main") const |
| Rewind an open read transaction to this snapshot. | |
| sqlite3_snapshot * | native_handle () const noexcept |
Static Public Member Functions | |
| static snapshot | take (connection &con, std::string_view schema="main") |
| Capture a snapshot for the provided connection/schema. | |
Private Member Functions | |
| snapshot (sqlite3_snapshot *handle) | |
Private Attributes | |
| sqlite3_snapshot * | handle_ = nullptr |
RAII wrapper around sqlite3_snapshot.
Definition at line 62 of file snapshot.hpp.
|
default |
Referenced by operator=(), operator=(), snapshot(), snapshot(), and take().
| sqlite::v2::snapshot::~snapshot | ( | ) |
|
delete |
|
noexcept |
|
explicitprivate |
|
inlinenoexcept |
Definition at line 88 of file snapshot.hpp.
References handle_, and native_handle().
Referenced by native_handle().

| void sqlite::v2::snapshot::open | ( | connection & | con, |
| std::string_view | schema = "main" ) const |
|
inlineexplicitnoexcept |
Definition at line 75 of file snapshot.hpp.
References valid().

|
noexcept |
Release the managed sqlite3_snapshot (if owned).
|
static |
Capture a snapshot for the provided connection/schema.
References snapshot(), and take().
Referenced by take().

|
inlinenoexcept |
|
private |
Definition at line 94 of file snapshot.hpp.
Referenced by native_handle(), and valid().