2016-06-03 20:33:21 +02:00
|
|
|
#ifndef _SQMYSQL_TRANSACTION_HPP_
|
|
|
|
#define _SQMYSQL_TRANSACTION_HPP_
|
2016-05-22 21:34:27 +02:00
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
#include "Common.hpp"
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
namespace SqMod {
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
2016-06-03 21:17:52 +02:00
|
|
|
* ...
|
2016-05-22 21:34:27 +02:00
|
|
|
*/
|
2016-06-03 21:17:52 +02:00
|
|
|
class Transaction
|
|
|
|
{
|
|
|
|
public:
|
2016-05-22 21:34:27 +02:00
|
|
|
|
2016-06-03 21:17:52 +02:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Default constructor.
|
|
|
|
*/
|
|
|
|
Transaction()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Copy constructor. (disabled)
|
|
|
|
*/
|
|
|
|
Transaction(const Transaction & o) = delete;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Move constructor. (disabled)
|
|
|
|
*/
|
|
|
|
Transaction(Transaction && o) = default;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Destructor.
|
|
|
|
*/
|
|
|
|
~Transaction()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Copy assignment operator. (disabled)
|
|
|
|
*/
|
|
|
|
Transaction & operator = (const Transaction & o) = delete;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Move assignment operator. (disabled)
|
|
|
|
*/
|
|
|
|
Transaction & operator = (Transaction && o) = default;
|
|
|
|
|
|
|
|
};
|
2016-05-22 21:34:27 +02:00
|
|
|
|
|
|
|
} // Namespace:: SqMod
|
|
|
|
|
2016-06-03 20:33:21 +02:00
|
|
|
#endif // _SQMYSQL_TRANSACTION_HPP_
|