class RowResult implements BaseResult, Traversable (View source)

Class RowResult

Methods

array
fetchAll()

Fetch all the rows from the result set.

array
fetchOne()

Fetch one result from the result set.

int
getColumnsCount()

Retrieve the column count for columns present in the result set.

array
getColumnNames()

Retrieve column names for columns present in the result set.

array
getColumns()

Retrieve column metadata for columns present in the result set.

array
getWarnings()

Retrieve warnings from the last RowResult operation.

int
getWarningsCount()

Retrieve the number of warnings from the last RowResult operation.

Details

array fetchAll()

Fetch all the rows from the result set.

Return Value

array

A numerical array with all results from the query; each result is an associative array. An empty array is returned if no rows are present.

array fetchOne()

Fetch one result from the result set.

Return Value

array

The result, as an associative array or NULL if no results are present.

int getColumnsCount()

Retrieve the column count for columns present in the result set.

Return Value

int

array getColumnNames()

Retrieve column names for columns present in the result set.

Return Value

array

array getColumns()

Retrieve column metadata for columns present in the result set.

Return Value

array

array getWarnings()

Retrieve warnings from the last RowResult operation.

Return Value

array

int getWarningsCount()

Retrieve the number of warnings from the last RowResult operation.

Return Value

int