ResultSet
class ResultSet implements Iterator, IRowContainer
Represents a database result set.
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
Displays result set as HTML table.
No description
No description
No description
No description
No description
Returns the next row as an associative array, or null if there are no more rows.
Returns the next row as a Row object or null if there are no more rows.
Returns the first field of the next row or null if there are no more rows.
Returns the next row as indexed array or null if there are no more rows.
Alias for fetchList().
No description
Returns all remaining rows as array of Row objects.
Details
at line 34
__construct(Connection $connection, string $queryString, array $params, Closure|null $normalizer = null)
No description
at line 70
Connection
getConnection()
deprecated
deprecated
No description
at line 77
PDOStatement|null
getPdoStatement()
| internal |
No description
at line 83
string
getQueryString()
No description
at line 90
array
getParameters()
No description
at line 96
int|null
getColumnCount()
No description
at line 102
int|null
getRowCount()
No description
at line 109
array
getColumnTypes()
No description
at line 120
float
getTime()
No description
at line 131
array
normalizeRow(array $row)
| internal |
No description
at line 145
void
dump()
Displays result set as HTML table.
at line 154
void
rewind()
No description
at line 162
Row|false|null
current()
No description
at line 168
int
key()
No description
at line 174
void
next()
No description
at line 180
bool
valid()
No description
at line 198
array|null
fetchAssoc(string|null $path = null)
Returns the next row as an associative array, or null if there are no more rows.
When $path is given, fetches all rows and restructures them using Arrays::associate().
at line 221
Row|null
fetch()
Returns the next row as a Row object or null if there are no more rows.
at line 236
mixed
fetchField()
Returns the first field of the next row or null if there are no more rows.
at line 247
array|null
fetchList()
Returns the next row as indexed array or null if there are no more rows.
at line 258
array|null
fetchFields()
Alias for fetchList().
at line 271
array
fetchPairs(string|int|Closure|null $keyOrCallback = null, string|int|null $value = null)
No description
at line 281
array
fetchAll()
Returns all remaining rows as array of Row objects.