influxdata / influxdata/awesome
Code sample for sql.to()/from() should use secrets API
- Dominant language
- SCSS
- Stars
- 14
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
In this section: https://awesome.influxdata.com/docs/part-2/querying-and-data-transformations/#accessing-external-data-sources
The code for ```from()```:
```
sql.from(
driverName: "postgres",
dataSourceName: "postgresql://user:password@localhost",
query:"SELECT * FROM TestTable"
)
```
I suggest that we demonstrate using ```import "influxdata/influxdb/secrets"``` throughout.
Contributor guide
No contributing guide indexed for this repository
Research direction
Open the linked “Accessing External Data Sources” section and inspect the sql.from() example. Update the sample to demonstrate the secrets API throughout; it is done when the published example no longer embeds the username and password directly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, sql
- Domain
- databases, documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100