1
0
forked from blue/pica
pica/database/mysql/transaction.h

20 lines
317 B
C
Raw Normal View History

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