QueryStream
interfacein packageklyn.data
public interface QueryStream<T> extends AutoClosable:
└ QueryStream

Sequential, forward-only query result stream.

A stream may own a database cursor, parser, file, or provider session and must therefore be closed. One stream is consumed by one logical consumer; it is not a collection and does not expose random access or a size.

Example
try rows = query.stream():
while rows.next():
print(rows.current)
Properties
Modifier and Type Member Description
public readonly property current
current as T
Current row after a successful call to next().
Methods
Modifier and Type Member Description
public cancel
cancel() as Void
Requests cancellation of the current provider operation.
public close
close() as Void
Releases every resource owned by this stream.
public next
next() as Boolean
Advances to the next row.
Inherited Methods
methodInherited Methods from AutoClosable: close