|
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 |
| ResultSet (MYSQL_RES *result, MYSQL_FIELD *fields, uint64 rowCount, uint32 fieldCount) | |
| ~ResultSet () | |
Protected Attributes | |
| Field * | _currentRow |
| uint32 | _fieldCount |
| uint64 | _rowCount |
Private Member Functions | |
| void | CleanUp () |
| ResultSet & | operator= (ResultSet const &right)=delete |
| ResultSet (ResultSet const &right)=delete | |
Private Attributes | |
| MYSQL_FIELD * | _fields |
| MYSQL_RES * | _result |
Definition at line 18 of file QueryResult.h.
| ResultSet::ResultSet | ( | MYSQL_RES * | result, |
| MYSQL_FIELD * | fields, | ||
| uint64 | rowCount, | ||
| uint32 | fieldCount ) |
Definition at line 9 of file QueryResult.cpp.
References _currentRow, _fieldCount, _fields, _result, _rowCount, and ASSERT.
Referenced by operator=(), and ResultSet().
| ResultSet::~ResultSet | ( | ) |
Definition at line 128 of file QueryResult.cpp.
References CleanUp().
|
privatedelete |
References ResultSet().
|
private |
Definition at line 194 of file QueryResult.cpp.
References _currentRow, and _result.
Referenced by NextRow(), and ~ResultSet().
|
inline |
Definition at line 28 of file QueryResult.h.
References _currentRow.
|
inline |
Definition at line 26 of file QueryResult.h.
References _fieldCount.
|
inline |
Definition at line 25 of file QueryResult.h.
References _rowCount.
Referenced by BasicStatementTask::Execute(), SQLQueryHolder::GetResult(), DatabaseWorkerPool< CharacterDatabaseConnection >::Query(), and SQLQueryHolder::SetResult().
| bool ResultSet::NextRow | ( | ) |
Definition at line 139 of file QueryResult.cpp.
References _currentRow, _fieldCount, _fields, _result, and CleanUp().
Referenced by BasicStatementTask::Execute(), SQLQueryHolder::GetResult(), and DatabaseWorkerPool< CharacterDatabaseConnection >::Query().
References ResultSet().
Definition at line 29 of file QueryResult.h.
References _currentRow, _fieldCount, and ASSERT.
|
protected |
Definition at line 37 of file QueryResult.h.
Referenced by CleanUp(), Fetch(), NextRow(), operator[](), and ResultSet().
|
protected |
Definition at line 38 of file QueryResult.h.
Referenced by GetFieldCount(), NextRow(), operator[](), and ResultSet().
|
private |
Definition at line 43 of file QueryResult.h.
Referenced by NextRow(), and ResultSet().
|
private |
Definition at line 42 of file QueryResult.h.
Referenced by CleanUp(), NextRow(), and ResultSet().
|
protected |
Definition at line 36 of file QueryResult.h.
Referenced by GetRowCount(), and ResultSet().