10 #ifndef _MARIADB_SAVE_POINT_HPP_ 11 #define _MARIADB_SAVE_POINT_HPP_ Class representing a SQL transaction having automatic rollback functionality.
transaction * m_transaction
Class used to represent a MariaDB savepoint having automatic rollback functionality.
Wraps a Database connection.
std::shared_ptr< save_point > save_point_ref
void commit()
Commits the changes and releases savepoint.
virtual ~save_point()
Destructor initiates automatic rollback if changes were not committed.
save_point(transaction *trans)
Create save_point with given transaction.