influxdb-client-js

InfluxDB 2.0 JavaScript client

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

Home > @influxdata/influxdb-client-giraffe > csvToTable

csvToTable() function

Transforms annotated CSV query response to Giraffe’s Table.

Signature:

declare function csvToTable(csv: string, tableFactory: GiraffeTableFactory, tableOptions?: TableOptions): Table;

Parameters

Parameter Type Description
csv string annotated CSV flux query response
tableFactory GiraffeTableFactory creates a new Giraffe table
tableOptions TableOptions (Optional) tableOptions allows to filter or even stop the processing of rows, specify maximum rows or restrict the columns to collect.

Returns:

Table

a new Table instance