Fixed Transaction class.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user