AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "QueryResult.h"
Public Member Functions | |
ResultSet (MySQLResult *result, MySQLField *fields, uint64 rowCount, uint32 fieldCount) | |
~ResultSet () | |
bool | NextRow () |
uint64 | GetRowCount () const |
uint32 | GetFieldCount () const |
std::string | GetFieldName (uint32 index) const |
Field * | Fetch () const |
Field const & | operator[] (std::size_t index) const |
template<typename... Ts> | |
std::tuple< Ts... > | FetchTuple () |
auto | begin () |
Static Public Member Functions | |
static auto | end () |
Protected Attributes | |
std::vector< QueryResultFieldMetadata > | _fieldMetadata |
uint64 | _rowCount |
Field * | _currentRow |
uint32 | _fieldCount |
Private Member Functions | |
void | CleanUp () |
void | AssertRows (std::size_t sizeRows) |
ResultSet (ResultSet const &right)=delete | |
ResultSet & | operator= (ResultSet const &right)=delete |
Private Attributes | |
MySQLResult * | _result |
MySQLField * | _fields |
ResultSet::ResultSet | ( | MySQLResult * | result, |
MySQLField * | fields, | ||
uint64 | rowCount, | ||
uint32 | fieldCount | ||
) |
References _currentRow, _fieldCount, _fieldMetadata, _fields, and Field::SetMetadata().
ResultSet::~ResultSet | ( | ) |
References CleanUp().
|
privatedelete |
|
private |
References _fieldCount, and ASSERT.
|
inline |
|
private |
References _currentRow, and _result.
Referenced by NextRow(), and ~ResultSet().
|
inlinestatic |
|
inline |
|
inline |
|
inline |
std::string ResultSet::GetFieldName | ( | uint32 | index | ) | const |
References _fieldCount, _fields, and ASSERT.
|
inline |
Referenced by BasicStatementTask::Execute(), and DatabaseWorkerPool< T >::Query().
bool ResultSet::NextRow | ( | ) |
References _currentRow, _fieldCount, _result, CleanUp(), and LOG_WARN.
Referenced by BasicStatementTask::Execute(), and DatabaseWorkerPool< T >::Query().
Field const & ResultSet::operator[] | ( | std::size_t | index | ) | const |
References _currentRow, _fieldCount, and ASSERT.
|
protected |
Referenced by CleanUp(), NextRow(), operator[](), and ResultSet().
|
protected |
Referenced by AssertRows(), GetFieldName(), NextRow(), operator[](), and ResultSet().
|
protected |
Referenced by ResultSet().
|
private |
Referenced by GetFieldName(), and ResultSet().
|
private |
|
protected |