Documentation

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.

Parameters

bucket

(Required) IOx bucket to read data from.

query

(Required) SQL query to execute.

Examples

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!


The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more