![]() |
TrinityCore
|
#include <QueryResult.h>
Public Member Functions | |
| PreparedResultSet (MySQLStmt *stmt, MySQLResult *result, uint64 rowCount, uint32 fieldCount) | |
| ~PreparedResultSet () | |
| bool | NextRow () |
| uint64 | GetRowCount () const |
| uint32 | GetFieldCount () const |
| Field * | Fetch () const |
| Field const & | operator[] (std::size_t index) const |
| Field const & | operator[] (Trinity::DB::FieldLookupByAliasKey const &alias) const |
| QueryResultFieldMetadata const & | GetFieldMetadata (std::size_t index) const |
| QueryResultFieldMetadata const & | GetFieldMetadata (Trinity::DB::FieldLookupByAliasKey const &alias) const |
Protected Attributes | |
| std::vector< QueryResultFieldMetadata > | m_fieldMetadata |
| Trinity::DB::FieldAliasToIndexMap | m_fieldIndexByAlias |
| std::vector< Field > | m_rows |
| uint64 | m_rowCount |
| uint64 | m_rowPosition |
| uint32 | m_fieldCount |
Private Member Functions | |
| void | CleanUp () |
| bool | _NextRow () |
| PreparedResultSet (PreparedResultSet const &right)=delete | |
| PreparedResultSet & | operator= (PreparedResultSet const &right)=delete |
Private Attributes | |
| MySQLBind * | m_rBind |
| MySQLStmt * | m_stmt |
| MySQLResult * | m_metadataResult |
| Field metadata, returned by mysql_stmt_result_metadata. | |
Definition at line 83 of file QueryResult.h.
| PreparedResultSet::PreparedResultSet | ( | MySQLStmt * | stmt, |
| MySQLResult * | result, | ||
| uint64 | rowCount, | ||
| uint32 | fieldCount | ||
| ) |
All data is buffered, let go of mysql c api structures
Definition at line 415 of file QueryResult.cpp.
Here is the call graph for this function:| PreparedResultSet::~PreparedResultSet | ( | ) |
|
privatedelete |
|
private |
Only called in low-level code, namely the constructor Will iterate over every row of data and buffer it
Definition at line 597 of file QueryResult.cpp.
Here is the caller graph for this function:
|
private |
| Field * PreparedResultSet::Fetch | ( | ) | const |
|
inline |
Definition at line 91 of file QueryResult.h.
| QueryResultFieldMetadata const & PreparedResultSet::GetFieldMetadata | ( | std::size_t | index | ) | const |
Definition at line 683 of file QueryResult.cpp.
| QueryResultFieldMetadata const & PreparedResultSet::GetFieldMetadata | ( | Trinity::DB::FieldLookupByAliasKey const & | alias | ) | const |
Definition at line 689 of file QueryResult.cpp.
|
inline |
| 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 587 of file QueryResult.cpp.
|
privatedelete |
| Field const & PreparedResultSet::operator[] | ( | std::size_t | index | ) | const |
Definition at line 668 of file QueryResult.cpp.
| Field const & PreparedResultSet::operator[] | ( | Trinity::DB::FieldLookupByAliasKey const & | alias | ) | const |
Definition at line 675 of file QueryResult.cpp.
|
protected |
Definition at line 106 of file QueryResult.h.
|
protected |
Definition at line 102 of file QueryResult.h.
|
protected |
Definition at line 101 of file QueryResult.h.
|
private |
Field metadata, returned by mysql_stmt_result_metadata.
Definition at line 111 of file QueryResult.h.
|
private |
Definition at line 109 of file QueryResult.h.
|
protected |
Definition at line 104 of file QueryResult.h.
|
protected |
Definition at line 105 of file QueryResult.h.
|
protected |
Definition at line 103 of file QueryResult.h.
|
private |
Definition at line 110 of file QueryResult.h.