Interface Phalcon\Db\ResultInterface

Methods

abstract public booleanexecute ()

Allows to executes the statement again. Some database systems don’t support scrollable cursors, So, as cursors are forward only, we need to execute the cursor again to fetch rows from the begining

abstract public mixedfetch ()

Fetches an array/object of strings that corresponds to the fetched row, or FALSE if there are no more rows. This method is affected by the active fetch flag set using Phalcon\Db\Result\Pdo::setFetchMode

abstract public mixedfetchArray ()

Returns an array of strings that corresponds to the fetched row, or FALSE if there are no more rows. This method is affected by the active fetch flag set using Phalcon\Db\Result\Pdo::setFetchMode

abstract public arrayfetchAll ()

Returns an array of arrays containing all the records in the result This method is affected by the active fetch flag set using Phalcon\Db\Result\Pdo::setFetchMode

abstract public intnumRows ()

Gets number of rows returned by a resulset

abstract public dataSeek (int $number)

Moves internal resulset cursor to another position letting us to fetch a certain row