do not allow to copy/move transactions objects
This commit is contained in:
parent
c5cf4a2672
commit
907f10671d
|
@ -61,6 +61,18 @@ Transaction::Transaction(ModelConnector * model_connector, bool auto_begin_trans
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Transaction::Transaction(const Transaction &)
|
||||||
|
{
|
||||||
|
// at the moment do not allow to copy transactions (make me private)
|
||||||
|
}
|
||||||
|
|
||||||
|
Transaction::Transaction(Transaction &&)
|
||||||
|
{
|
||||||
|
// at the moment do not allow to move transactions (make me private)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Transaction::~Transaction()
|
Transaction::~Transaction()
|
||||||
{
|
{
|
||||||
if( is_transaction_started )
|
if( is_transaction_started )
|
||||||
|
|
|
@ -72,6 +72,13 @@ protected:
|
||||||
bool do_query(const char * query);
|
bool do_query(const char * query);
|
||||||
pt::Log * get_logger();
|
pt::Log * get_logger();
|
||||||
|
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
Transaction(const Transaction &);
|
||||||
|
Transaction(Transaction &&);
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue