CollectLines executes the query and collects all result lines in the returned Promise. This method is suitable to collect simple results. Use with caution, a possibly huge stream of lines is copied to memory.
query
Promise of returned csv lines
CollectRows executes the query and collects all the results in the returned Promise. This method is suitable to collect simple results. Use with caution, a possibly huge stream of results is copied to memory.
query
Optional
rowMapper: (values: string[], tableMeta: FluxTableMetaData) => undefined | Tmaps the supplied row to an item that is then collected,
undefined return values are not collected. If no rowMapper is supplied,
row => tableMeta.toObject(row.values)
is used.
Promise of mapped results
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.
query
async iterable of CSV result lines
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.
query
async iterable of CSV result lines
Creates a cold observable of the lines returned by the given query.
query
observable of CSV result lines
Executes the query and receives result lines (including empty and annotation lines) through the supplied consumer. See annotated-csv.
query
csv result lines and error consumer
QueryRaw executes a query and returns the full response as a string. Use with caution, a possibly huge stream is copied to memory.
query
Promise of response text
Executes the query and receives table metadata and rows through the supplied consumer.
query
result rows and error consumer
Response returns an AnnotatedCSVResponse instance that executes the query when asked for data.
query
response with various methods to process data from the returned annotated CSV response data stream
Creates a cold observable of the rows returned by the given query.
query
observable of result rows
Returns a new query API with extra options applied.
query options to use
queryApi instance with the supplied options
Query InfluxDB. Provides methods that notify about result lines of the executed query. See https://docs.influxdata.com/influxdb/latest/api/#operation/PostQuery