InfluxDB 2.0 JavaScript client
Home > @influxdata/influxdb-client > QueryApi > iterateLines
IterateLines executes the supplied query and returns results in an async iterable of annotated CSV lines. Async iterables are best consumed by for-await
loop.
Signature:
iterateLines(query: string | ParameterizedQuery): AsyncIterable<string>;
Parameter | Type | Description |
---|---|---|
query | string | ParameterizedQuery | query |
Returns:
AsyncIterable<string>
async iterable of CSV result lines