Skip to content

StatementIterator

[Source]

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

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

Implements


Constructors

create

[Source]

new ref create(
  stmt: Statement ref)
: StatementIterator 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