![]() |
TrinityCore
|
#include <MySQLPreparedStatement.h>
Public Member Functions | |
| MySQLPreparedStatement (MySQLStmt *stmt, std::string queryString) | |
| ~MySQLPreparedStatement () | |
| void | BindParameters (PreparedStatementBase *stmt) |
| uint32 | GetParameterCount () const |
Protected Member Functions | |
| void | SetParameter (uint8 index, std::nullptr_t) |
| void | SetParameter (uint8 index, bool value) |
| template<typename T > | |
| void | SetParameter (uint8 index, T value) |
| void | SetParameter (uint8 index, SystemTimePoint value) |
| void | SetParameter (uint8 index, std::string const &value) |
| void | SetParameter (uint8 index, std::vector< uint8 > const &value) |
| MySQLStmt * | GetSTMT () |
| MySQLBind * | GetBind () |
| void | ClearParameters () |
| void | AssertValidIndex (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 const | m_queryString |
Friends | |
| class | MySQLConnection |
| class | PreparedStatementBase |
Definition at line 33 of file MySQLPreparedStatement.h.
| MySQLPreparedStatement::MySQLPreparedStatement | ( | MySQLStmt * | stmt, |
| std::string | queryString | ||
| ) |
Initialize variable parameters
"If set to 1, causes mysql_stmt_store_result() to update the metadata MYSQL_FIELD->max_length value."
Definition at line 40 of file MySQLPreparedStatement.cpp.
References m_bind, m_paramCount, and m_paramsSet.
| MySQLPreparedStatement::~MySQLPreparedStatement | ( | ) |
Definition at line 54 of file MySQLPreparedStatement.cpp.
References ClearParameters(), m_bind, and m_Mstmt.
|
privatedelete |
|
protected |
Definition at line 104 of file MySQLPreparedStatement.cpp.
References ASSERT, PreparedStatementBase::GetIndex(), m_paramCount, m_paramsSet, m_stmt, ParamenterIndexAssertFail(), and TC_LOG_ERROR.
Referenced by SetParameter(), SetParameter(), SetParameter(), SetParameter(), and SetParameter().
| void MySQLPreparedStatement::BindParameters | ( | PreparedStatementBase * | stmt | ) |
Definition at line 66 of file MySQLPreparedStatement.cpp.
References PreparedStatementBase::GetIndex(), PreparedStatementBase::GetParameters(), m_paramCount, m_stmt, SetParameter(), and TC_LOG_WARN.
Referenced by MySQLConnection::_Query(), and MySQLConnection::Execute().
|
protected |
Definition at line 85 of file MySQLPreparedStatement.cpp.
References m_bind, m_paramCount, and m_paramsSet.
Referenced by MySQLConnection::_Query(), MySQLConnection::Execute(), and ~MySQLPreparedStatement().
|
inlineprotected |
Definition at line 56 of file MySQLPreparedStatement.h.
Referenced by MySQLConnection::_Query(), and MySQLConnection::Execute().
|
inline |
Definition at line 44 of file MySQLPreparedStatement.h.
|
protected |
Definition at line 210 of file MySQLPreparedStatement.cpp.
References PreparedStatementBase::GetParameters(), m_queryString, m_stmt, and PreparedStatementData::ToString().
Referenced by MySQLConnection::_Query(), and MySQLConnection::Execute().
|
inlineprotected |
Definition at line 55 of file MySQLPreparedStatement.h.
Referenced by MySQLConnection::_Query(), MySQLConnection::Execute(), and MySQLConnection::Query().
|
privatedelete |
|
protected |
Definition at line 126 of file MySQLPreparedStatement.cpp.
References SetParameter().
|
protected |
Definition at line 112 of file MySQLPreparedStatement.cpp.
References AssertValidIndex(), m_bind, and m_paramsSet.
Referenced by BindParameters(), and SetParameter().
|
protected |
Definition at line 176 of file MySQLPreparedStatement.cpp.
References AssertValidIndex(), m_bind, and m_paramsSet.
|
protected |
Definition at line 193 of file MySQLPreparedStatement.cpp.
References AssertValidIndex(), m_bind, and m_paramsSet.
|
protected |
Definition at line 149 of file MySQLPreparedStatement.cpp.
References AssertValidIndex(), m_bind, and m_paramsSet.
|
protected |
Definition at line 132 of file MySQLPreparedStatement.cpp.
References AssertValidIndex(), m_bind, and m_paramsSet.
|
friend |
Definition at line 35 of file MySQLPreparedStatement.h.
|
friend |
Definition at line 36 of file MySQLPreparedStatement.h.
|
private |
Definition at line 66 of file MySQLPreparedStatement.h.
Referenced by ClearParameters(), MySQLPreparedStatement(), SetParameter(), SetParameter(), SetParameter(), SetParameter(), SetParameter(), and ~MySQLPreparedStatement().
|
private |
Definition at line 63 of file MySQLPreparedStatement.h.
Referenced by ~MySQLPreparedStatement().
|
private |
Definition at line 64 of file MySQLPreparedStatement.h.
Referenced by AssertValidIndex(), BindParameters(), ClearParameters(), and MySQLPreparedStatement().
|
private |
Definition at line 65 of file MySQLPreparedStatement.h.
Referenced by AssertValidIndex(), ClearParameters(), MySQLPreparedStatement(), SetParameter(), SetParameter(), SetParameter(), SetParameter(), and SetParameter().
|
private |
Definition at line 67 of file MySQLPreparedStatement.h.
Referenced by getQueryString().
|
protected |
Definition at line 57 of file MySQLPreparedStatement.h.
Referenced by AssertValidIndex(), BindParameters(), and getQueryString().