Result
class Result implements IteratorAggregate
Represents a database result set.
Methods
No description
No description
No description
No description
No description
No description
Displays result set as HTML table.
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 30
__construct(Explorer $explorer, SqlLiteral $query, Result|null $result, float $time)
No description
at line 39
Explorer
getConnection()
No description
at line 47
SqlLiteral
getQuery()
No description
at line 54
string
getQueryString()
deprecated
deprecated
No description
at line 60
array
getParameters()
No description
at line 67
int|null
getColumnCount()
No description
at line 73
int|null
getRowCount()
No description
at line 79
float
getTime()
No description
at line 91
void
dump()
Displays result set as HTML table.
at line 101
Generator
getIterator()
No description
at line 122
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 146
Row|null
fetch()
Returns the next row as a Row object or null if there are no more rows.
at line 156
mixed
fetchField()
Returns the first field of the next row or null if there are no more rows.
at line 167
array|null
fetchList()
Returns the next row as indexed array or null if there are no more rows.
at line 178
array|null
fetchFields()
Alias for fetchList().
at line 191
array
fetchPairs(string|int|Closure|null $keyOrCallback = null, string|int|null $value = null)
No description
at line 201
array
fetchAll()
Returns all remaining rows as array of Row objects.