|
SlHelpers
|
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. | |
Begin a transaction in the constructor and end in the destructor.