Query SQL data sources |
Query SQL data sources with InfluxDB |
Query SQL data |
The Flux `sql` package provides functions for working with SQL data sources. Use `sql.from()` to query SQL databases like PostgreSQL, MySQL, Snowflake, SQLite, Microsoft SQL Server, Amazon Athena, and Google BigQuery.
|
|
influxdb_cloud |
parent |
list_title |
Query with Flux |
SQL data |
|
|
220 |
|
```js
import "sql"
sql.from(
driverName: "postgres",
dataSourceName: "postgresql://user:password@localhost",
query: "SELECT * FROM example_table",
)
```
|