AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "MySQLPreparedStatement.h"
Public Member Functions | |
MySQLPreparedStatement (MySQLStmt *stmt, std::string_view queryString) | |
~MySQLPreparedStatement () | |
void | BindParameters (PreparedStatementBase *stmt) |
uint32 | GetParameterCount () const |
Protected Member Functions | |
void | SetParameter (const uint8 index, bool value) |
void | SetParameter (const uint8 index, std::nullptr_t) |
void | SetParameter (const uint8 index, std::string const &value) |
void | SetParameter (const uint8 index, std::vector< uint8 > const &value) |
template<typename T > | |
void | SetParameter (const uint8 index, T value) |
MySQLStmt * | GetSTMT () |
MySQLBind * | GetBind () |
void | ClearParameters () |
void | AssertValidIndex (const uint8 index) |
std::string | getQueryString () const |
Protected Attributes | |
PreparedStatementBase * | m_stmt |
Private Member Functions | |
MySQLPreparedStatement (MySQLPreparedStatement const &right)=delete | |
MySQLPreparedStatement & | operator= (MySQLPreparedStatement const &right)=delete |
Private Attributes | |
MySQLStmt * | m_Mstmt |
uint32 | m_paramCount |
std::vector< bool > | m_paramsSet |
MySQLBind * | m_bind |
std::string | m_queryString {} |
Friends | |
class | MySQLConnection |
class | PreparedStatementBase |
MySQLPreparedStatement::MySQLPreparedStatement | ( | MySQLStmt * | stmt, |
std::string_view | queryString | ||
) |
Initialize variable parameters
"If set to 1, causes mysql_stmt_store_result() to update the metadata MYSQL_FIELD->max_length value."
References m_bind, m_paramCount, and m_paramsSet.
MySQLPreparedStatement::~MySQLPreparedStatement | ( | ) |
References ClearParameters(), m_bind, and m_Mstmt.
|
privatedelete |
|
protected |
References ASSERT, PreparedStatementBase::GetIndex(), LOG_ERROR, m_paramCount, m_paramsSet, m_stmt, and ParamenterIndexAssertFail().
Referenced by SetParameter().
void MySQLPreparedStatement::BindParameters | ( | PreparedStatementBase * | stmt | ) |
References PreparedStatementBase::GetIndex(), PreparedStatementBase::GetParameters(), LOG_WARN, m_paramCount, m_stmt, and SetParameter().
Referenced by MySQLConnection::_Query(), and MySQLConnection::Execute().
|
protected |
References m_bind, m_paramCount, and m_paramsSet.
Referenced by MySQLConnection::_Query(), MySQLConnection::Execute(), and ~MySQLPreparedStatement().
|
inlineprotected |
Referenced by MySQLConnection::_Query(), and MySQLConnection::Execute().
|
inline |
Referenced by MySQLConnection::_Query(), and MySQLConnection::Execute().
|
protected |
References PreparedStatementBase::GetParameters(), m_queryString, m_stmt, and PreparedStatementData::ToString().
Referenced by MySQLConnection::_Query(), and MySQLConnection::Execute().
|
inlineprotected |
Referenced by MySQLConnection::_Query(), MySQLConnection::Execute(), and MySQLConnection::Query().
|
privatedelete |
|
protected |
References SetParameter().
Referenced by BindParameters(), and SetParameter().
|
protected |
References AssertValidIndex(), m_bind, and m_paramsSet.
|
protected |
References AssertValidIndex(), m_bind, and m_paramsSet.
|
protected |
References AssertValidIndex(), m_bind, and m_paramsSet.
|
protected |
References AssertValidIndex(), m_bind, and m_paramsSet.
|
friend |
|
friend |
|
private |
Referenced by ClearParameters(), MySQLPreparedStatement(), SetParameter(), and ~MySQLPreparedStatement().
|
private |
Referenced by ~MySQLPreparedStatement().
|
private |
Referenced by AssertValidIndex(), BindParameters(), ClearParameters(), and MySQLPreparedStatement().
|
private |
Referenced by AssertValidIndex(), ClearParameters(), MySQLPreparedStatement(), and SetParameter().
|
private |
Referenced by getQueryString().
|
protected |
Referenced by AssertValidIndex(), BindParameters(), and getQueryString().