|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Transaction.h>
Public Member Functions | |
| void | Append (const char *sql) |
| void | Append (PreparedStatement *statement) |
| size_t | GetSize () const |
| void | PAppend (const char *sql,...) |
| Transaction () | |
| ~Transaction () | |
Protected Member Functions | |
| void | Cleanup () |
Protected Attributes | |
| std::list< SQLElementData > | m_queries |
Private Attributes | |
| bool | _cleanedUp |
Friends | |
| template<typename T> | |
| class | DatabaseWorkerPool |
| class | MySQLConnection |
| class | TransactionTask |
Transactions, high level class.
Definition at line 16 of file Transaction.h.
|
inline |
Definition at line 25 of file Transaction.h.
References _cleanedUp.
|
inline |
Definition at line 26 of file Transaction.h.
References Cleanup().
| void Transaction::Append | ( | const char * | sql | ) |
Definition at line 11 of file Transaction.cpp.
References SQLElementData::element, m_queries, SQLElementUnion::query, SQL_ELEMENT_RAW, and SQLElementData::type.
| void Transaction::Append | ( | PreparedStatement * | statement | ) |
Definition at line 31 of file Transaction.cpp.
References SQLElementData::element, m_queries, SQL_ELEMENT_PREPARED, SQLElementUnion::stmt, and SQLElementData::type.
Referenced by PAppend().
|
protected |
Definition at line 39 of file Transaction.cpp.
References _cleanedUp, SQLElementData::element, m_queries, SQLElementUnion::query, SQL_ELEMENT_PREPARED, SQL_ELEMENT_RAW, SQLElementUnion::stmt, and SQLElementData::type.
Referenced by ~Transaction().
|
inline |
Definition at line 32 of file Transaction.h.
References m_queries.
| void Transaction::PAppend | ( | const char * | sql, |
| ... ) |
Definition at line 19 of file Transaction.cpp.
References Append(), MAX_QUERY_LEN, and vsnprintf.
|
friend |
Definition at line 22 of file Transaction.h.
References DatabaseWorkerPool.
Referenced by DatabaseWorkerPool.
|
friend |
Definition at line 19 of file Transaction.h.
References MySQLConnection.
Referenced by MySQLConnection.
|
friend |
Definition at line 18 of file Transaction.h.
References TransactionTask.
Referenced by TransactionTask.
|
private |
Definition at line 39 of file Transaction.h.
Referenced by Cleanup(), and Transaction().
|
protected |