From 8ff8bcbc1af9817e001be3163e23976da0fca047 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Mon, 22 Jul 2019 12:30:21 -0600 Subject: [PATCH] added toc to sql guide to address PR feedback --- content/v2.0/query-data/guides/sql.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/content/v2.0/query-data/guides/sql.md b/content/v2.0/query-data/guides/sql.md index 7e6d26e75..19d49c54d 100644 --- a/content/v2.0/query-data/guides/sql.md +++ b/content/v2.0/query-data/guides/sql.md @@ -16,9 +16,15 @@ The [Flux](/v2.0/reference/flux) `sql` package provides functions for working wi like [PostgreSQL](https://www.postgresql.org/) and [MySQL](https://www.mysql.com/) and use the results with InfluxDB dashboards, tasks, and other operations. +- [Query a SQL data source](#query-a-sql-data-source) +- [Join SQL data with data in InfluxDB](#join-sql-data-with-data-in-influxdb) +- [Use SQL results to populate dashboard variables](#use-sql-results-to-populate-dashboard-variables) +- [Sample sensor data](#sample-sensor-data) + +## Query a SQL data source To query a SQL data source: -1. import the `sql` package in your Flux query +1. Import the `sql` package in your Flux query 2. Use the `sql.from()` function to specify the driver, data source name (DSN), and query used to query data from your SQL data source: