Go to file
drethereum 2da486a6be
add-github-actions-ethereum (#332)
* added github action jobs and modified profiles.yml accordingly

* offset github action cron jobs

* added job for evm decoder
2023-01-11 14:24:12 -07:00
.github/workflows add-github-actions-ethereum (#332) 2023-01-11 14:24:12 -07:00
analysis AN-2470/decoder-view (#291) 2022-12-15 12:55:17 -08:00
data add nft floor feeds (#323) 2022-12-14 20:53:51 -05:00
docs An 2605/decoded data (#327) 2022-12-21 16:16:11 -05:00
macros macros and tests (#334) 2023-01-05 15:05:44 -07:00
models Limit range (#344) 2023-01-11 10:23:24 -05:00
snapshots An 690/new eth data (#1) 2022-02-08 18:13:39 -08:00
tests turn back on tests (#162) 2022-08-23 15:22:21 -04:00
.env.sample add community dev and dbt container (#108) 2022-07-13 14:41:28 -04:00
.gitignore fix/dbt-env-gitignore (#328) 2023-01-03 14:07:40 -07:00
dbt_project.yml AN-2390/update-vars-udf-sps (#265) 2022-11-11 08:49:56 -07:00
docker-compose.yml add community dev and dbt container (#108) 2022-07-13 14:41:28 -04:00
Dockerfile add community dev and dbt container (#108) 2022-07-13 14:41:28 -04:00
LICENSE Initial commit 2022-02-08 13:54:36 -08:00
Makefile add community dev and dbt container (#108) 2022-07-13 14:41:28 -04:00
packages.yml hc package (#329) 2022-12-28 13:22:36 -05:00
profiles.yml add-github-actions-ethereum (#332) 2023-01-11 14:24:12 -07:00
README.md AN-2416/readme-vars-eth (#273) 2022-11-14 11:36:35 -07:00

Profile Set Up

Use the following within profiles.yml


ethereum:
  target: dev
  outputs:
    dev:
      type: snowflake
      account: <ACCOUNT>
      role: <ROLE>
      user: <USERNAME>
      password: <PASSWORD>
      region: <REGION>
      database: ETHEREUM_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: ETHEREUM
      warehouse: <WAREHOUSE>
      schema: silver
      threads: 12
      client_session_keep_alive: False
      query_tag: <TAG>

Variables

To control which external table environment a model references, as well as, whether a Stream is invoked at runtime using control variables:

  • STREAMLINE_INVOKE_STREAMS When True, invokes streamline on model run as normal When False, NO-OP
  • STREAMLINE_USE_DEV_FOR_EXTERNAL_TABLES When True, uses DEV schema Streamline.Ethereum_DEV When False, uses PROD schema Streamline.Ethereum

Default values are False

  • Usage: dbt run --var '{"STREAMLINE_USE_DEV_FOR_EXTERNAL_TABLES":True, "STREAMLINE_INVOKE_STREAMS":True}' -m ...

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