Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 3.12 KB

node-duckdb.resultiterator.md

File metadata and controls

37 lines (25 loc) · 3.12 KB

Node-DuckDB API > ResultIterator

ResultIterator class

ResultIterator represents the result set of a DuckDB query. Instances of this class are returned by the Connection.executeIterator.

Signature:

export declare class ResultIterator<T> implements IterableIterator<T>

Implements: IterableIterator<T>

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ResultIterator class.

Properties

Property Modifiers Type Description
isClosed boolean Returns true if ResultIterator is closed, false otherwise.
type ResultType Get the ResultType of the ResultIterator. This is specified by the options argument on executeIterator.

Methods

Method Modifiers Description
[Symbol.iterator]()
close() Close the ResultIterator
describe() Describe the result set schema.
fetchAllRows() Fetch all rows
fetchRow() Fetch the next row
next()