|  | Audacity 3.2.0
    | 
A class representing a transaction in SQLite. More...
#include <Transaction.h>
| Public Member Functions | |
| Transaction (const Transaction &)=delete | |
| Transaction (Transaction &&)=delete | |
| Transaction & | operator= (const Transaction &)=delete | 
| Transaction & | operator= (Transaction &&)=delete | 
| ~Transaction () | |
| Error | GetBeginResult () const noexcept | 
| bool | IsOpen () const noexcept | 
| Error | Commit () noexcept | 
| Error | Abort () noexcept | 
| Private Types | |
| enum class | TransactionOperation { BeginOp , CommitOp , RollbackOp } | 
| using | TransactionHandler = Error(*)(Connection &, TransactionOperation, Transaction &) | 
| Private Member Functions | |
| Transaction (Connection &connection, TransactionHandler handler, std::string_view name) noexcept | |
| Private Attributes | |
| Connection & | mConnection | 
| TransactionHandler | mHandler | 
| std::string | mName | 
| Error | mBeginResult {} | 
| bool | mCommitted {} | 
| Friends | |
| class | Connection | 
A class representing a transaction in SQLite.
Definition at line 19 of file Transaction.h.
| 
 | private | 
Definition at line 30 of file Transaction.h.
| 
 | strongprivate | 
| Enumerator | |
|---|---|
| BeginOp | |
| CommitOp | |
| RollbackOp | |
Definition at line 23 of file Transaction.h.
| 
 | privatenoexcept | 
Definition at line 12 of file Transaction.cpp.
| 
 | delete | 
| 
 | delete | 
| audacity::sqlite::Transaction::~Transaction | ( | ) | 
Definition at line 22 of file Transaction.cpp.
References Abort().
| 
 | noexcept | 
Definition at line 48 of file Transaction.cpp.
References audacity::sqlite::Error::IsError(), mBeginResult, mCommitted, mConnection, mHandler, and RollbackOp.
Referenced by ~Transaction().
| 
 | noexcept | 
Definition at line 37 of file Transaction.cpp.
References CommitOp, audacity::sqlite::Error::IsError(), mBeginResult, mCommitted, mConnection, and mHandler.
| 
 | noexcept | 
Definition at line 27 of file Transaction.cpp.
References mBeginResult.
| 
 | noexcept | 
Definition at line 32 of file Transaction.cpp.
References audacity::sqlite::Error::IsOk(), mBeginResult, and mCommitted.
| 
 | delete | 
| 
 | delete | 
| 
 | friend | 
Definition at line 21 of file Transaction.h.
| 
 | private | 
Definition at line 55 of file Transaction.h.
Referenced by Abort(), Commit(), GetBeginResult(), and IsOpen().
| 
 | private | 
Definition at line 56 of file Transaction.h.
Referenced by Abort(), Commit(), IsOpen(), and audacity::sqlite::Connection::TransactionHandler().
| 
 | private | 
Definition at line 52 of file Transaction.h.
| 
 | private | 
Definition at line 53 of file Transaction.h.
| 
 | private | 
Definition at line 54 of file Transaction.h.
Referenced by audacity::sqlite::Connection::TransactionHandler().