#pragma once #include "mysql.h" class MySQL::Transaction { public: Transaction(MYSQL* connection); ~Transaction(); void commit(); void abort(); private: MYSQL* con; bool opened; };