Skip to content

Code sample for sql.to()/from() should use secrets API #32

@rickspencer3

Description

@rickspencer3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions