Write to data sources
Write to the following data sources with Flux:
experimental.to() to write data to InfluxDB using Flux.
data |> to(bucket: "example-bucket")
sql.to() to write data to SQL databases with Flux.
import "sql" sql.to( driverName: "postgres", dataSourceName: "postgresql://user:password@localhost", table: "ExampleTable", batchSize: 10000, )
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:
InfluxDB Cloud customers can contact InfluxData Support.