You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
335 B
C++

#ifndef TRANSACTION_H
#define TRANSACTION_H
#include <odb/database.hxx>
#include <odb/transaction.hxx>
#include "core_global.h"
class CORESHARED_EXPORT Transaction
{
public:
Transaction();
~Transaction();
void commit();
private:
odb::transaction *m_tr;
static bool m_inTransaction;
};
#endif // TRANSACTION_H