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.
Datei anzeigen
Open project: gabordemooij/redbean
Interface Usage Examples
Public Methods
Method |
Description |
|
close ( ) : void |
Closes the database cursor. |
|
getNextItem ( ) : array |
Should retrieve the next row of the result set. |
|
Method Details
Some databases require a cursor to be closed before executing
another statement/opening a new cursor.
getNextItem()
public method
This method is used to iterate over the result set.