PHP Interface RedBeanPHP\Cursor

A cursor is used by Query Writers to fetch Query Result rows one row at a time. This is useful if you expect the result set to be quite large. This interface dscribes the API of a database cursor. There can be multiple implementations of the Cursor, by default RedBeanPHP offers the PDOCursor for drivers shipping with RedBeanPHP and the NULLCursor.
Author: Gabor de Mooij and the RedBeanPHP Community
Afficher le fichier Open project: gabordemooij/redbean Interface Usage Examples

Méthodes publiques

Méthode Description
close ( ) : void Closes the database cursor.
getNextItem ( ) : array Should retrieve the next row of the result set.

Method Details

close() public méthode

Some databases require a cursor to be closed before executing another statement/opening a new cursor.
public close ( ) : void
Résultat void

getNextItem() public méthode

This method is used to iterate over the result set.
public getNextItem ( ) : array
Résultat array