Go to file
drethereum 5f33cb7dda
AN-2584/unique-key-tx-test (#22)
* changed unique keys on log and traces and added new test to log

* added dbt-env to gitignore for SSO functionality
2023-01-03 14:07:21 -07:00
analysis initial/setup (#1) 2022-06-16 15:45:57 -04:00
data seed tables (#13) 2022-08-19 15:16:22 -04:00
docs An 1931/sushi borrowing and lending table bsc (#15) 2022-08-25 15:57:26 -04:00
macros AN-2584/unique-key-tx-test (#22) 2023-01-03 14:07:21 -07:00
models AN-2584/unique-key-tx-test (#22) 2023-01-03 14:07:21 -07:00
snapshots initial/setup (#1) 2022-06-16 15:45:57 -04:00
tests store failures (#12) 2022-08-09 10:55:28 -04:00
.gitignore AN-2584/unique-key-tx-test (#22) 2023-01-03 14:07:21 -07:00
dbt_project.yml AN-2421/update-udf-sp-bsc (#19) 2022-11-14 14:26:10 -05:00
LICENSE Initial commit 2022-06-16 15:02:12 -04:00
packages.yml hc (#23) 2022-12-28 13:22:53 -05:00
README.md AN-2421/update-udf-sp-bsc (#19) 2022-11-14 14:26:10 -05:00

Profile Set Up

Use the following within profiles.yml


bsc:
  target: dev
  outputs:
    dev:
      type: snowflake
      account: <ACCOUNT>
      role: <ROLE>
      user: <USERNAME>
      password: <PASSWORD>
      region: <REGION>
      database: BSC_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: BSC
      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