|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <QueryResult.h>
Public Member Functions | |
| Field * | Fetch () const |
| uint32 | GetFieldCount () const |
| uint64 | GetRowCount () const |
| bool | NextRow () |
| const Field & | operator[] (uint32 index) const |
| PreparedResultSet (MYSQL_STMT *stmt, MYSQL_RES *result, uint64 rowCount, uint32 fieldCount) | |
| ~PreparedResultSet () | |
Protected Attributes | |
| uint32 | m_fieldCount |
| uint64 | m_rowCount |
| uint64 | m_rowPosition |
| std::vector< Field * > | m_rows |
Private Member Functions | |
| bool | _NextRow () |
| void | CleanUp () |
| void | FreeBindBuffer () |
| PreparedResultSet & | operator= (PreparedResultSet const &right)=delete |
| PreparedResultSet (PreparedResultSet const &right)=delete | |
Private Attributes | |
| bool * | m_isNull |
| unsigned long * | m_length |
| MYSQL_BIND * | m_rBind |
| MYSQL_RES * | m_res |
| MYSQL_STMT * | m_stmt |
Definition at line 50 of file QueryResult.h.
| PreparedResultSet::PreparedResultSet | ( | MYSQL_STMT * | stmt, |
| MYSQL_RES * | result, | ||
| uint64 | rowCount, | ||
| uint32 | fieldCount ) |
All data is buffered, let go of mysql c api structures
Definition at line 19 of file QueryResult.cpp.
References _NextRow(), CleanUp(), m_fieldCount, m_isNull, m_length, m_rBind, m_res, m_rowCount, m_rowPosition, m_rows, m_stmt, SF_LOG_WARN, and Field::SizeForType().
Referenced by operator=(), and PreparedResultSet().
| PreparedResultSet::~PreparedResultSet | ( | ) |
Definition at line 133 of file QueryResult.cpp.
References m_rowCount, and m_rows.
|
privatedelete |
References PreparedResultSet().
|
private |
Only called in low-level code, namely the constructor Will iterate over every row of data and buffer it
Definition at line 176 of file QueryResult.cpp.
References m_rowCount, m_rowPosition, and m_stmt.
Referenced by PreparedResultSet().
|
private |
More of the in our code allocated sources are deallocated by the poorly documented mysql c api
Definition at line 209 of file QueryResult.cpp.
References FreeBindBuffer(), m_rBind, m_res, and m_stmt.
Referenced by PreparedResultSet().
|
inline |
Definition at line 60 of file QueryResult.h.
References ASSERT, m_rowCount, m_rowPosition, and m_rows.
|
private |
Definition at line 221 of file QueryResult.cpp.
References m_fieldCount, and m_rBind.
Referenced by CleanUp().
|
inline |
Definition at line 58 of file QueryResult.h.
References m_fieldCount.
|
inline |
Definition at line 57 of file QueryResult.h.
References m_rowCount.
Referenced by PreparedStatementTask::Execute(), SQLQueryHolder::GetPreparedResult(), DatabaseWorkerPool< CharacterDatabaseConnection >::Query(), and SQLQueryHolder::SetPreparedResult().
| bool PreparedResultSet::NextRow | ( | ) |
Only updates the m_rowPosition so upper level code knows in which element of the rows vector to look
Definition at line 166 of file QueryResult.cpp.
References m_rowCount, and m_rowPosition.
|
privatedelete |
References PreparedResultSet().
Definition at line 66 of file QueryResult.h.
References ASSERT, m_fieldCount, m_rowCount, m_rowPosition, and m_rows.
|
protected |
Definition at line 77 of file QueryResult.h.
Referenced by FreeBindBuffer(), GetFieldCount(), operator[](), and PreparedResultSet().
|
private |
Definition at line 84 of file QueryResult.h.
Referenced by PreparedResultSet().
|
private |
Definition at line 85 of file QueryResult.h.
Referenced by PreparedResultSet().
|
private |
Definition at line 80 of file QueryResult.h.
Referenced by CleanUp(), FreeBindBuffer(), and PreparedResultSet().
|
private |
Definition at line 82 of file QueryResult.h.
Referenced by CleanUp(), and PreparedResultSet().
|
protected |
Definition at line 75 of file QueryResult.h.
Referenced by _NextRow(), Fetch(), GetRowCount(), NextRow(), operator[](), PreparedResultSet(), and ~PreparedResultSet().
|
protected |
Definition at line 76 of file QueryResult.h.
Referenced by _NextRow(), Fetch(), NextRow(), operator[](), and PreparedResultSet().
|
protected |
Definition at line 74 of file QueryResult.h.
Referenced by Fetch(), operator[](), PreparedResultSet(), and ~PreparedResultSet().
|
private |
Definition at line 81 of file QueryResult.h.
Referenced by _NextRow(), CleanUp(), and PreparedResultSet().