Skip to content

CursorIterator

[Source]

Iterator adapter for Cursor. Enables for result in cursor.values() do. Yields Row values on success, FetchError on failure. EndOfRows ends iteration.

class ref CursorIterator is
  Iterator[(Row val | FetchError val)] ref

Implements


Constructors

create

[Source]

new ref create(
  cursor: Cursor ref)
: CursorIterator ref^

Parameters

Returns


Public Functions

has_next

[Source]

fun ref has_next()
: Bool val

Returns


next

[Source]

fun ref next()
: (Row val | FetchError val) ?

Returns