solana-models/dbt_project.yml
desmond-hui d573bf32cb
An 2145/hot swap (#130)
* update table references

* rename of *2 models

* swap old and *2 models; update refs

* An 2145/add error col to completed log (#126)

* add error column to completed table output

* fix group by

* add error column for completed blocks update

* auto fill block gaps

* gap test for blocks2

* re-request missing txs real-time

* test for bronze to silver data load

* add error col, match updated

* test for missing partition in transactions or votes

* test for tx gaps in streamline data

* exclude partition 1877

* fix group by

* remove hardcoded prod db references

* change v2 references to v1

* make version change same as main

* no longer need historical staking lp actions, included in regular model (#128)

* no longer need historical staking lp actions, included in regular model

* remove additional resources related to historical staking lp actions

* avoid name clash, remove duplicate test

* remove ingested_at from models

* tx_count no longer a col

* remove invalid condition, col didnt exist

* remove min block_id filter

* remove deprecated columns

Co-authored-by: tarikceric <tarik@flipsidecrypto.com>
2022-10-13 11:19:41 -07:00

52 lines
1.6 KiB
YAML

# Name your project! Project names should contain only lowercase characters
# and underscores. A good package name should reflect your organization's
# name or the intended use of these models
name: "solana_models"
version: "1.0.0"
config-version: 2
# This setting configures which "profile" dbt uses for this project.
profile: "solana"
# These configurations specify where dbt should look for different types of files.
# The `model-paths` config, for example, states that models in this project can be
# found in the "models/" directory. You probably won't need to change these!
model-paths: ["models"]
analysis-paths: ["analysis"]
test-paths: ["tests"]
seed-paths: ["data"]
macro-paths: ["macros"]
snapshot-paths: ["snapshots"]
target-path: "target" # directory which will store compiled SQL files
clean-targets: # directories to be removed by `dbt clean`
- "target"
- "dbt_modules"
- "dbt_packages"
tests:
+store_failures: true # all tests
on-run-start:
- '{{ create_sps() }}'
- '{{ create_udfs() }}'
- '{{ sp_create_bulk_get_decoded_instructions_data() }}'
- '{{ sp_create_bulk_get_validator_metadata() }}'
# Configuring models
# Full documentation: https://docs.getdbt.com/docs/configuring-models
# In this example config, we tell dbt to build all models in the example/ directory
# as tables. These settings can be overridden in the individual model files
# using the `{{ config(...) }}` macro.
models:
+copy_grants: true
+persist_docs:
relation: true
columns: true
+on_schema_change: "append_new_columns"
vars:
"dbt_date:time_zone": America/Los_Angeles