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

RAII helper for BEGIN/COMMIT/ROLLBACK sequences and WAL snapshots. More...

#include <string>
#include <string_view>
Include dependency graph for transaction.hpp:

Go to the source code of this file.

Classes

struct  sqlite::v2::transaction
 transaction is a helper class to start transactions within SQLite More...

Namespaces

namespace  sqlite
namespace  sqlite::v2

Enumerations

enum class  sqlite::v2::transaction_type { sqlite::v2::undefined , sqlite::v2::deferred , sqlite::v2::immediate , sqlite::v2::exclusive }
 Defines the kind of transaction to begin. More...

Detailed Description

RAII helper for BEGIN/COMMIT/ROLLBACK sequences and WAL snapshots.

The sqlite::transaction type guarantees that transactions are closed on scope exit and provides helpers for selecting the transaction kind or wiring in snapshot semantics.

Definition in file transaction.hpp.