![]() |
TrinityCore
|
#include <QueryResult.h>
Public Member Functions | |
| ResultSet (MySQLResult *result, MySQLField *fields, uint64 rowCount, uint32 fieldCount) | |
| ~ResultSet () | |
| 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 > | _fieldMetadata |
| Trinity::DB::FieldAliasToIndexMap | _fieldIndexByAlias |
| uint64 | _rowCount |
| Field * | _currentRow |
| uint32 | _fieldCount |
Private Member Functions | |
| void | CleanUp () |
| ResultSet (ResultSet const &right)=delete | |
| ResultSet & | operator= (ResultSet const &right)=delete |
Private Attributes | |
| MySQLResult * | _result |
| MySQLField * | _fields |
Definition at line 50 of file QueryResult.h.
| ResultSet::ResultSet | ( | MySQLResult * | result, |
| MySQLField * | fields, | ||
| uint64 | rowCount, | ||
| uint32 | fieldCount | ||
| ) |
Definition at line 396 of file QueryResult.cpp.
References _currentRow, _fieldCount, _fieldIndexByAlias, _fieldMetadata, _fields, ASSERT, Name, Trinity::DB::FieldLookupByAliasKey::RuntimeInit, and Field::SetMetadata().
| ResultSet::~ResultSet | ( | ) |
Definition at line 551 of file QueryResult.cpp.
References CleanUp().
|
privatedelete |
|
private |
Definition at line 608 of file QueryResult.cpp.
References _currentRow, and _result.
Referenced by NextRow(), and ~ResultSet().
|
inline |
Definition at line 60 of file QueryResult.h.
|
inline |
Definition at line 58 of file QueryResult.h.
| QueryResultFieldMetadata const & ResultSet::GetFieldMetadata | ( | std::size_t | index | ) | const |
Definition at line 649 of file QueryResult.cpp.
References _fieldCount, _fieldMetadata, and ASSERT.
| QueryResultFieldMetadata const & ResultSet::GetFieldMetadata | ( | Trinity::DB::FieldLookupByAliasKey const & | alias | ) | const |
Definition at line 655 of file QueryResult.cpp.
References _fieldIndexByAlias, _fieldMetadata, and ASSERT.
|
inline |
Definition at line 57 of file QueryResult.h.
Referenced by BasicStatementTask::Query().
| bool ResultSet::NextRow | ( | ) |
Definition at line 561 of file QueryResult.cpp.
References _currentRow, _fieldCount, _result, CleanUp(), and TC_LOG_WARN.
Referenced by BasicStatementTask::Query().
| Field const & ResultSet::operator[] | ( | std::size_t | index | ) | const |
Definition at line 636 of file QueryResult.cpp.
References _currentRow, _fieldCount, and ASSERT.
| Field const & ResultSet::operator[] | ( | Trinity::DB::FieldLookupByAliasKey const & | alias | ) | const |
Definition at line 642 of file QueryResult.cpp.
References _currentRow, _fieldIndexByAlias, and ASSERT.
|
protected |
Definition at line 71 of file QueryResult.h.
Referenced by CleanUp(), NextRow(), operator[](), operator[](), and ResultSet().
|
protected |
Definition at line 72 of file QueryResult.h.
Referenced by GetFieldMetadata(), NextRow(), operator[](), and ResultSet().
|
protected |
Definition at line 69 of file QueryResult.h.
Referenced by GetFieldMetadata(), operator[](), and ResultSet().
|
protected |
Definition at line 68 of file QueryResult.h.
Referenced by GetFieldMetadata(), GetFieldMetadata(), and ResultSet().
|
private |
Definition at line 77 of file QueryResult.h.
Referenced by ResultSet().
|
private |
Definition at line 76 of file QueryResult.h.
|
protected |
Definition at line 70 of file QueryResult.h.