A collection of snippets for the datavault4dbt package by Scalefree. Provides scaffolding and code blocks for data vault entities as well as pre-populated hash keys and model names according to naming conventions.
Features
templates all datavault4dbt entities
supporting code blocks for repeated tasks like setting hash key and hashdiff
prepopulates hash keys from model name
How to Use
Datavault4dbt snippets are prefixed with two underscores. Codeblocks created by these have several prepopulated fields that you can go through by tabbing through them. When creating a Stage, you can use the __stg snippet to create the skeleton for the stage macro that you can then tab through to fill out all steps necessary to build your model. Create a new hashkey by using the __hk block, add a multi-active satellite by using __ma_config, and many more.