influxdb-client-js

InfluxDB 2.0 JavaScript client

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

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

QueryApi.queryLines() method

Executes the query and receives result lines (including empty and annotation lines) through the supplied consumer. See annotated-csv.

Signature:

queryLines(query: string | ParameterizedQuery, consumer: CommunicationObserver<string>): void;

Parameters

Parameter Type Description
query string | ParameterizedQuery query
consumer CommunicationObserver<string> csv result lines and error consumer

Returns:

void