|
nanodbc
A small C++ wrapper for the native C ODBC API
|
A resource for managing transaction commits and rollbacks. More...
#include <nanodbc.h>
Public Member Functions | |
| transaction (const class connection &conn) | |
| Begin a transaction on the given connection object. | |
| transaction (const transaction &rhs) noexcept | |
| Copy constructor. | |
| transaction (transaction &&rhs) noexcept | |
| Move constructor. | |
| transaction & | operator= (transaction rhs) noexcept |
| Assignment. | |
| void | swap (transaction &rhs) noexcept |
| Member swap. | |
| ~transaction () noexcept | |
| If this transaction has not been committed, it will rollback any modifying ops. | |
| void | commit () |
| Commits transaction immediately. | |
| void | rollback () noexcept |
| Marks this transaction for rollback. | |
| class connection & | connection () noexcept |
| Returns the connection object. | |
| const class connection & | connection () const noexcept |
| Returns the connection object. | |
| operator class connection & () noexcept | |
| Returns the connection object. | |
| operator const class connection & () const noexcept | |
| Returns the connection object. | |
A resource for managing transaction commits and rollbacks.
|
explicit |
Begin a transaction on the given connection object.
| database_error |
| void nanodbc::transaction::commit | ( | ) |
Commits transaction immediately.
| database_error |