| fb-cpp 0.0.1
    A modern C++ wrapper for the Firebird database API | 
Represents a transaction in a Firebird database. More...
#include <Transaction.h>
| Public Member Functions | |
| Transaction (Attachment &attachment, const TransactionOptions &options={}) | |
| Constructs a Transaction object that starts a transaction in the specified Attachment using the specified options. | |
| Transaction (Attachment &attachment, std::string_view setTransactionCmd) | |
| Constructs a Transaction object that starts a transaction specified by a SET TRANSACTIONcommand. | |
| Transaction (Transaction &&o) noexcept | |
| Move constructor. | |
| Transaction & | operator= (Transaction &&)=delete | 
| Transaction (const Transaction &)=delete | |
| Transaction & | operator= (const Transaction &)=delete | 
| ~Transaction () noexcept | |
| Rolls back the transaction if it is still active. | |
| bool | isValid () noexcept | 
| Returns whether the Transaction object is valid. | |
| FbRef< fb::ITransaction > | getHandle () noexcept | 
| Returns the internal Firebird ITransaction handle. | |
| void | commit () | 
| Commits the transaction. | |
| void | commitRetaining () | 
| Commits the transaction while maintains it active. | |
| void | rollback () | 
| Rolls back the transaction. | |
| void | rollbackRetaining () | 
| Rolls back the transaction while maintains it active. | |
Represents a transaction in a Firebird database.
The Transaction must exist and remain valid while there are other objects using it, such as Statement. If a Transaction object is destroyed before being committed or rolled back, it will be automatically rolled back.
Definition at line 276 of file Transaction.h.
| 
 | explicit | 
Constructs a Transaction object that starts a transaction in the specified Attachment using the specified options.
Definition at line 35 of file Transaction.cpp.
| 
 | explicit | 
Constructs a Transaction object that starts a transaction specified by a SET TRANSACTION command. 
Definition at line 144 of file Transaction.cpp.
| 
 | inlinenoexcept | 
Move constructor.
A moved Transaction object becomes invalid.
Definition at line 297 of file Transaction.h.
| 
 | inlinenoexcept | 
Rolls back the transaction if it is still active.
Definition at line 311 of file Transaction.h.
| void Transaction::commit | ( | ) | 
Commits the transaction.
Definition at line 169 of file Transaction.cpp.
| void Transaction::commitRetaining | ( | ) | 
Commits the transaction while maintains it active.
Definition at line 180 of file Transaction.cpp.
| 
 | inlinenoexcept | 
Returns the internal Firebird ITransaction handle.
Definition at line 338 of file Transaction.h.
| 
 | inlinenoexcept | 
Returns whether the Transaction object is valid.
Definition at line 330 of file Transaction.h.
| void Transaction::rollback | ( | ) | 
Rolls back the transaction.
Definition at line 157 of file Transaction.cpp.
| void Transaction::rollbackRetaining | ( | ) | 
Rolls back the transaction while maintains it active.
Definition at line 190 of file Transaction.cpp.