Cursor

A cursor that reads progressively rows from the database, it is useful for reading very large result sets.

package

Default

Methods

__construct

__construct() 

Release the cursor.

close( $arg0 = null) : void

It should be called for prepared queries executed with a fetch size.

close()

Like @see \io\vertx\jphp\sqlclient\Cursor::close but with a completionHandler called when the cursor has been released.

param $completionHandler [callable] close($completionHandler)

Arguments

$arg0

callable

Returns <code>true</code> when the cursor has results in progress and the @see \io\vertx\jphp\sqlclient\Cursor::read should be called to retrieve them.

hasMore() : boolean

Response

boolean

whether the cursor has more results,

Read rows from the cursor, the result is provided asynchronously to the <code>handler</code>.

read( $arg0,  $arg1) : void

Arguments

$arg0

integer

$arg1

callable