influxdb-client-js

InfluxDB 2.0 JavaScript client

View the Project on GitHub influxdata/influxdb-client-js

Home > @influxdata/influxdb-client > QueryApi > iterateRows

QueryApi.iterateRows() method

IterateRows executes the supplied query and returns results in an async iterable of row data and table metadata pairs. Async iterables are best consumed by for-await loop.

Signature:

iterateRows(query: string | ParameterizedQuery): AsyncIterable<Row>;

Parameters

Parameter Type Description
query string | ParameterizedQuery query

Returns:

AsyncIterable<Row>

async iterable of CSV result lines