Node-DuckDB API > ResultIterator
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>
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.
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. |
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() |