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