![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "DBCDatabase.h"
Public Types | |
typedef DBCDatabaseStatements | Statements |
Public Member Functions | |
DBCDatabaseConnection (MySQLConnectionInfo &connInfo) | |
DBCDatabaseConnection (ProducerConsumerQueue< SQLOperation * > *q, MySQLConnectionInfo &connInfo) | |
~DBCDatabaseConnection () override | |
void | DoPrepareStatements () override |
![]() | |
MySQLConnection (MySQLConnectionInfo &connInfo) | |
MySQLConnection (ProducerConsumerQueue< SQLOperation * > *queue, MySQLConnectionInfo &connInfo) | |
Constructor for synchronous connections. | |
virtual | ~MySQLConnection () |
Constructor for asynchronous connections. | |
virtual uint32 | Open () |
void | Close () |
bool | PrepareStatements () |
bool | Execute (std::string_view sql) |
bool | Execute (PreparedStatementBase *stmt) |
ResultSet * | Query (std::string_view sql) |
PreparedResultSet * | Query (PreparedStatementBase *stmt) |
bool | _Query (std::string_view sql, MySQLResult **pResult, MySQLField **pFields, uint64 *pRowCount, uint32 *pFieldCount) |
bool | _Query (PreparedStatementBase *stmt, MySQLPreparedStatement **mysqlStmt, MySQLResult **pResult, uint64 *pRowCount, uint32 *pFieldCount) |
void | BeginTransaction () |
void | RollbackTransaction () |
void | CommitTransaction () |
int | ExecuteTransaction (std::shared_ptr< TransactionBase > transaction) |
size_t | EscapeString (char *to, const char *from, size_t length) |
void | Ping () |
uint32 | GetLastError () |
Additional Inherited Members | |
![]() | |
typedef std::vector< std::unique_ptr< MySQLPreparedStatement > > | PreparedStatementContainer |
![]() | |
bool | LockIfReady () |
void | Unlock () |
Called by parent databasepool. Will let other threads access this connection. | |
uint32 | GetServerVersion () const |
MySQLPreparedStatement * | GetPreparedStatement (uint32 index) |
void | PrepareStatement (uint32 index, std::string_view sql, ConnectionFlags flags) |
virtual void | DoPrepareStatements ()=0 |
virtual bool | _HandleMySQLErrno (uint32 errNo, uint8 attempts=5) |
![]() | |
PreparedStatementContainer | m_stmts |
bool | m_reconnecting |
PreparedStatements storage. | |
bool | m_prepareError |
Are we reconnecting? | |
MySQLHandle * | m_Mysql |
Was there any error while preparing statements? | |
DBCDatabaseConnection::DBCDatabaseConnection | ( | MySQLConnectionInfo & | connInfo | ) |
DBCDatabaseConnection::DBCDatabaseConnection | ( | ProducerConsumerQueue< SQLOperation * > * | q, |
MySQLConnectionInfo & | connInfo | ||
) |
|
override |
|
overridevirtual |
Implements MySQLConnection.
References MySQLConnection::m_reconnecting, MySQLConnection::m_stmts, and MAX_DBCDATABASE_STATEMENTS.