pica/database/mysql/transaction.h

22 lines
330 B
C
Raw Normal View History

2023-12-30 22:42:11 +00:00
//SPDX-FileCopyrightText: 2023 Yury Gubich <blue@macaw.me>
//SPDX-License-Identifier: GPL-3.0-or-later
2023-12-22 23:25:20 +00:00
2023-12-20 22:42:13 +00:00
#pragma once
#include "mysql.h"
2023-12-29 17:40:00 +00:00
namespace DB {
2023-12-20 22:42:13 +00:00
class MySQL::Transaction {
public:
Transaction(MYSQL* connection);
~Transaction();
void commit();
void abort();
private:
MYSQL* con;
bool opened;
};
2023-12-29 17:40:00 +00:00
}