class SqlStatementResult implements BaseResult, Traversable (View source)

Class SqlStatementResult

Methods

array
fetchAll()

Fetch all the rows from the result set.

array
fetchOne()

Fetch one row from the result set.

int
getAffectedItemsCount()

Get affected row count

int
getColumnsCount()

Get column count

array
getColumnNames()

Get column names

array
getColumns()

Get columns

array
getGeneratedIds()

Get generated ids

string
getLastInsertId()

Get last insert id

array
getWarnings()

Get warnings from last operation

int
getWarningCounts()

Get warning count from last operation

bool
hasData()

Check if result has data

nextResult()

Get next result

Details

array fetchAll()

Fetch all the rows from the result set.

Return Value

array

array fetchOne()

Fetch one row from the result set.

Return Value

array

int getAffectedItemsCount()

Get affected row count

Return Value

int

int getColumnsCount()

Get column count

Return Value

int

array getColumnNames()

Get column names

Return Value

array

array getColumns()

Get columns

Return Value

array

array getGeneratedIds()

Get generated ids

Return Value

array

string getLastInsertId()

Get last insert id

Return Value

string

array getWarnings()

Get warnings from last operation

Return Value

array

int getWarningCounts()

Get warning count from last operation

Return Value

int

bool hasData()

Check if result has data

Return Value

bool

Result nextResult()

Get next result

Return Value

Result