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
(Required) IOx bucket to read data from.
(Required) SQL query to execute.
Use SQL to query data from IOx
import "experimental/iox" iox.sql(bucket: "example-bucket", query: "SELECT * FROM measurement")
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.