SlHelpers
Loading...
Searching...
No Matches
SlSqlite::AutoTransaction Class Reference

Begin a transaction in the constructor and end in the destructor. More...

#include <SQLConn.h>

Public Member Functions

 AutoTransaction (const SQLConn &conn, TransactionType type=TransactionType::DEFERRED)
 Begin an auto transaction.
 AutoTransaction (const AutoTransaction &)=delete
AutoTransaction & operator= (const AutoTransaction &)=delete
 AutoTransaction (AutoTransaction &&other) noexcept
 Move constructor.
AutoTransaction & operator= (AutoTransaction &&other) noexcept
 Move assignment.
void end ()
 End the transaction manually.
bool operator! () const
 Test whether AutoTransaction is valid.
 operator bool () const
 Test whether AutoTransaction is valid.

Detailed Description

Begin a transaction in the constructor and end in the destructor.


The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/slhelpers-20260428.f233ce9-build/slhelpers-20260428.f233ce9/include/sqlite/SQLConn.h