Go to file
xiuy001 933682cecf
Updated profiles env setting (#72)
* updated environment

* updated profiles

* updated
2023-01-11 14:02:13 -05:00
.github/workflows Updated profiles env setting (#72) 2023-01-11 14:02:13 -05:00
analysis Initial/setup (#1) 2022-06-07 19:13:08 -04:00
data An 1990/updating sushi pools (#32) 2022-09-01 12:49:46 -04:00
docs An 2604/polygon optimize (#71) 2023-01-04 13:53:07 -05:00
macros AN-2583/unique-key-tx-test (#67) 2023-01-03 14:07:27 -07:00
models An 2604/polygon optimize (#71) 2023-01-04 13:53:07 -05:00
snapshots Initial/setup (#1) 2022-06-07 19:13:08 -04:00
tests delete_custom_test_file (#33) 2022-09-29 10:19:12 -04:00
.gitignore AN-2583/unique-key-tx-test (#67) 2023-01-03 14:07:27 -07:00
dbt_project.yml quick fix syntax (#59) 2022-11-29 12:39:25 -05:00
LICENSE Initial commit 2022-06-07 13:48:45 -04:00
packages.yml hc (#69) 2022-12-28 13:23:25 -05:00
profiles.yml Updated profiles env setting (#72) 2023-01-11 14:02:13 -05:00
README.md updated README to include info on project lvl vars (#43) 2022-11-14 11:36:53 -07:00

Profile Set Up

Use the following within profiles.yml


polygon:
  target: dev
  outputs:
    dev:
      type: snowflake
      account: <ACCOUNT>
      role: <ROLE>
      user: <USERNAME>
      password: <PASSWORD>
      region: <REGION>
      database: POLYGON_DEV
      warehouse: <WAREHOUSE>
      schema: silver
      threads: 12
      client_session_keep_alive: False
      query_tag: <TAG>
    prod:
      type: snowflake
      account: <ACCOUNT>
      role: <ROLE>
      user: <USERNAME>
      password: <PASSWORD>
      region: <REGION>
      database: POLYGON
      warehouse: <WAREHOUSE>
      schema: silver
      threads: 12
      client_session_keep_alive: False
      query_tag: <TAG>

Variables

To control the creation of UDF or SP macros with dbt run:

  • UPDATE_UDFS_AND_SPS When True, executes all macros included in the on-run-start hooks within dbt_project.yml on model run as normal When False, none of the on-run-start macros are executed on model run

Default values are False

  • Usage: dbt run --var '{"UPDATE_UDFS_AND_SPS":True}' -m ...

Resources:

  • Learn more about dbt in the docs
  • Check out Discourse for commonly asked questions and answers
  • Join the chat on Slack for live discussions and support
  • Find dbt events near you
  • Check out the blog for the latest news on dbt's development and best practices