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().
Returns all rows as associative array, where first argument specifies key column and second value column.
Returns all remaining rows as array of Row objects.
Details
at line 28
__construct(Explorer $explorer, SqlLiteral $query, Result|null $result, float $time)
No description
at line 37
Explorer
getConnection()
No description
at line 45
SqlLiteral
getQuery()
No description
at line 52
string
getQueryString()
deprecated
deprecated use getQuery()->getSql()
No description
at line 58
array
getParameters()
No description
at line 65
int|null
getColumnCount()
No description
at line 71
int|null
getRowCount()
No description
at line 77
float
getTime()
No description
at line 89
void
dump()
Displays result set as HTML table.
at line 99
Generator
getIterator()
No description
at line 118
array|null
fetchAssoc(string|null $path = null)
Returns the next row as an associative array or null if there are no more rows.
at line 142
Row|null
fetch()
Returns the next row as a Row object or null if there are no more rows.
at line 152
mixed
fetchField()
Returns the first field of the next row or null if there are no more rows.
at line 162
array|null
fetchList()
Returns the next row as indexed array or null if there are no more rows.
at line 172
array|null
fetchFields()
Alias for fetchList().
at line 183
array
fetchPairs(string|int|Closure|null $keyOrCallback = null, string|int|null $value = null)
Returns all rows as associative array, where first argument specifies key column and second value column.
For duplicate keys, the last value is used. When using null as key, array is indexed from zero. Alternatively accepts callback returning value or key-value pairs.
at line 193
array
fetchAll()
Returns all remaining rows as array of Row objects.