do not allow to copy/move transactions objects
This commit is contained in:
@@ -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 &&);
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user