libsl3 1.2.41002
A C++ interface for SQLite
Loading...
Searching...
No Matches
Public Member Functions | List of all members
sl3::Database::Transaction Class Reference

Transaction Guard. More...

#include <sl3/database.hpp>

Public Member Functions

 Transaction (const Transaction &)=delete
 
Transactionoperator= (const Transaction &)=delete
 
Transactionoperator= (Transaction &&)=delete
 
 Transaction (Transaction &&) noexcept
 Move constructor A Transaction is movalble.
 
 ~Transaction ()
 Destructor.
 
void commit ()
 Commit the transaction.
 

Detailed Description

Transaction Guard.

Scope guard for transaction. If an instance of this class goes out of scope and commit has not been called, it will call Rollback.

Constructor & Destructor Documentation

◆ Transaction()

sl3::Database::Transaction::Transaction ( Transaction &&  )
noexcept

Move constructor A Transaction is movalble.

◆ ~Transaction()

sl3::Database::Transaction::~Transaction ( )

Destructor.

Calls ROLLBACK if the Transaction commit has not been called.

Member Function Documentation

◆ commit()

void sl3::Database::Transaction::commit ( )

Commit the transaction.

Calls commit transaction.


The documentation for this class was generated from the following file: