content/flux/v0/stdlib/experimental/iox/sql.md
iox.sql() executes an SQL query against a bucket in an IOx storage node.
This function creates a source that reads data from IOx.
(bucket: string, query: string) => stream[A] where A: Record
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
({{< req >}}) IOx bucket to read data from.
({{< req >}}) SQL query to execute.
import "experimental/iox"
iox.sql(bucket: "example-bucket", query: "SELECT * FROM measurement")