libsl3 1.3.51003
A C++ interface for SQLite
Loading...
Searching...
No Matches
sl3::Database::Transaction Class Reference

Transaction Guard. More...

#include <sl3/database.hpp>

Public Member Functions

 Transaction (const Transaction &)=delete
Transaction & operator= (const Transaction &)=delete
Transaction & operator= (Transaction &&)=delete
 Transaction (Transaction &&) noexcept
 Move constructor A Transaction is movable.
 ~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 movable.

◆ ~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: