Write to data sources
Write to the following data sources with Flux:
InfluxDB
Use to()
or experimental.to()
to write data to InfluxDB using Flux.
data
|> to(bucket: "example-bucket")
SQL databases
Use 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:
Customers with an annual or support contract can contact InfluxData Support.