Fixed Transaction class.

This commit is contained in:
2015-11-10 20:31:23 +01:00
parent f208120799
commit 6bc7fd8762
4 changed files with 30 additions and 7 deletions
+8
View File
@@ -1,12 +1,20 @@
#ifndef TRANSACTION_H
#define TRANSACTION_H
#include <odb/database.hxx>
#include <odb/transaction.hxx>
class Transaction
{
public:
Transaction();
~Transaction();
void commit();
private:
odb::transaction *m_tr;
static bool m_inTransaction;
};
#endif // TRANSACTION_H