class Result implements IteratorAggregate

Represents a result set.

Methods

__construct(Explorer $explorer, SqlLiteral $query, Result|null $result, float $time)

No description

getConnection()

No description

getQuery()

No description

string
getQueryString() deprecated

No description

array
getParameters()

No description

int|null
getColumnCount()

No description

int|null
getRowCount()

No description

float
getTime()

No description

void
dump()

Displays complete result set as HTML table for debug purposes.

getIterator()

No description

array|null
fetchAssoc(string|null $path = null)

Returns the next row as an associative array or null if there are no more rows.

Row|null
fetch()

Returns the next row as an object Row or null if there are no more rows.

mixed
fetchField()

Returns the first field of the next row or null if there are no more rows.

array|null
fetchList()

Returns the next row as indexes array or null if there are no more rows.

array|null
fetchFields()

Alias for fetchList().

array
fetchPairs(string|int|Closure|null $keyOrCallback = null, string|int|null $value = null)

Fetches all rows as associative array.

array
fetchAll()

Fetches all rows.

Details

at line 28
__construct(Explorer $explorer, SqlLiteral $query, Result|null $result, float $time)

No description

Parameters

Explorer $explorer
SqlLiteral $query
Result|null $result
float $time

at line 37
Explorer getConnection()

No description

Return Value

Explorer

at line 45
SqlLiteral getQuery()

No description

Return Value

SqlLiteral

at line 52
string getQueryString() deprecated

deprecated use getQuery()->getSql()

No description

Return Value

string

at line 58
array getParameters()

No description

Return Value

array

at line 65
int|null getColumnCount()

No description

Return Value

int|null

at line 71
int|null getRowCount()

No description

Return Value

int|null

at line 77
float getTime()

No description

Return Value

float

at line 89
void dump()

Displays complete result set as HTML table for debug purposes.

Return Value

void

at line 99
Generator getIterator()

No description

Return Value

Generator

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.

Parameters

string|null $path

Return Value

array|null

at line 142
Row|null fetch()

Returns the next row as an object Row or null if there are no more rows.

Return Value

Row|null

at line 152
mixed fetchField()

Returns the first field of the next row or null if there are no more rows.

Return Value

mixed

at line 162
array|null fetchList()

Returns the next row as indexes array or null if there are no more rows.

Return Value

array|null

at line 172
array|null fetchFields()

Alias for fetchList().

Return Value

array|null

at line 181
array fetchPairs(string|int|Closure|null $keyOrCallback = null, string|int|null $value = null)

Fetches all rows as associative array.

Parameters

string|int|Closure|null $keyOrCallback
string|int|null $value

Return Value

array

at line 191
array fetchAll()

Fetches all rows.

Return Value

array