do not allow to copy/move transactions objects

This commit is contained in:
Tomasz Sowa 2022-05-26 00:45:49 +02:00
parent c5cf4a2672
commit 907f10671d
2 changed files with 19 additions and 0 deletions

View File

@ -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()
{
if( is_transaction_started )

View File

@ -72,6 +72,13 @@ protected:
bool do_query(const char * query);
pt::Log * get_logger();
private:
Transaction(const Transaction &);
Transaction(Transaction &&);
};