Skip to content

Commit

Permalink
chore: tests and information
Browse files Browse the repository at this point in the history
  • Loading branch information
akvlad committed Sep 12, 2023
1 parent 8338e99 commit f6be1be
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
16 changes: 16 additions & 0 deletions stdlib/sql/from_private_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ func TestFromSqlUrlValidation(t *testing.T) {
Query: "",
},
ErrMsg: "",
}, {
Name: "ok influxdb-iox",
Spec: &FromSQLProcedureSpec{
DriverName: "influxdb-iox",
DataSourceName: "iox://localhost:12345/default?secure=true",
Query: "",
},
ErrMsg: "",
}, {
Name: "ok vertica",
Spec: &FromSQLProcedureSpec{
Expand Down Expand Up @@ -175,6 +183,14 @@ func TestFromSqlUrlValidation(t *testing.T) {
Query: "",
},
ErrMsg: "invalid data source dsn: may not set allowAllFiles",
}, {
Name: "invalid influxdb-iox",
Spec: &FromSQLProcedureSpec{
DriverName: "influxdb-iox",
DataSourceName: "iox2://localhost:12345/default?secure=true",
Query: "",
},
ErrMsg: "invalid data source scheme: iox2",
},
}
// Scan over test cases and adjust any that the driver is disabled for
Expand Down
4 changes: 4 additions & 0 deletions stdlib/sql/sql.flux
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
//
// # Vertica driver DSN
// vertica://<user>:<password>@<host>:<port>/<database>?<queryArgs>
//
// # InfluxDB IOX driver DSN
// iox://<host>:<port>/<namespace>?secure=true/false&token=...
// ```
//
// ### AWS Athena connection strings
Expand Down Expand Up @@ -127,6 +130,7 @@ package sql
// - sqlite3 _(Does not work with InfluxDB OSS or InfluxDB Cloud)_
// - sqlserver
// - vertica, vertigo
// - influxdb-iox
//
// - dataSourceName: Data source name (DNS) or connection string used to connect
// to the SQL database.
Expand Down

0 comments on commit f6be1be

Please sign in to comment.