Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
AstrakhantsevaAA committed Oct 30, 2023
1 parent 64d2229 commit 286662a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/website/docs/general-usage/credentials/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,18 @@ or pass everything via configuration.
# `only_strings` will get the default value False
data_source = google_sheets("23029402349032049", ["tab1", "tab2"])
```
`credentials` value will be injected by the `@source` decorator (e.g. from `secrets.toml`),
`credentials` value will be injected by the `@source` decorator (e.g. from `secrets.toml`).

`spreadsheet_id` and `tab_names` take values from the provided arguments.

2. Option B
```python
# `only_strings` will get the default value False
data_source = google_sheets()
```
In this case `credentials` value will be also injected by the `@source` decorator (e.g. from `secrets.toml`),
`spreadsheet_id` and `tab_names` will be injected by the `@source` decorator (e.g. from `config.toml`) as well.
`credentials` value will be injected by the `@source` decorator (e.g. from `secrets.toml`).

`spreadsheet_id` and `tab_names` will be also injected by the `@source` decorator (e.g. from `config.toml`).

We use `dlt.secrets.value` and `dlt.config.value` to set secrets and configurations via:
- [TOML files](config_providers#toml-provider) (`secrets.toml` & `config.toml`):
Expand Down

0 comments on commit 286662a

Please sign in to comment.