18 #ifndef _TRANSACTION_H
19 #define _TRANSACTION_H
31 friend class MySQLConnection;
41 void Append(
const char* sql);
42 template<
typename Format,
typename... Args>
43 void PAppend(Format&& sql, Args&&... args)
48 size_t GetSize()
const {
return m_queries.size(); }
Transaction()
Definition: Transaction.h:37
#define TC_DATABASE_API
Definition: Define.h:122
~Transaction()
Definition: Transaction.h:38
#define false
Definition: CascPort.h:18
Definition: PreparedStatement.h:74
bool _cleanedUp
Definition: Transaction.h:55
void PAppend(Format &&sql, Args &&...args)
Definition: Transaction.h:43
~TransactionTask()
Definition: Transaction.h:68
Definition: Transaction.h:28
std::list< SQLElementData > m_queries
Definition: Transaction.h:52
Definition: DatabaseWorker.h:27
std::string StringFormat(Format &&fmt, Args &&...args)
Default TC string format function.
Definition: StringFormat.h:28
SQLTransaction m_trans
Definition: Transaction.h:73
Definition: SQLOperation.h:56
size_t GetSize() const
Definition: Transaction.h:48
Definition: Transaction.h:61
static std::mutex _deadlockLock
Definition: Transaction.h:74
Definition: DatabaseWorkerPool.h:48
TransactionTask(SQLTransaction trans)
Definition: Transaction.h:67
std::shared_ptr< Transaction > SQLTransaction
Definition: Transaction.h:58