iox.sql() function

iox.sql() is experimental and subject to change at any time.

iox.sql() executes an SQL query against a bucket in an IOx storage node.

This function creates a source that reads data from IOx.

Function type signature
(bucket: string, query: string) => stream[A] where A: Record
For more information, see Function type signatures.



(Required) IOx bucket to read data from.


(Required) Query to execute.

Was this page helpful?

Thank you for your feedback!

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.