Recommended Usage
Import stellar-dbt-public as a dbt Package
If you need to build your own models on top of stellar-dbt-public, you can import stellar-dbt-public as a dbt package into a separate dbt project. Example instructions:- Create a new file
packages.ymlin your dbt project (not the stellar-dbt-public project) with the yml below
- (Optional) Update your profiles.yml to include profile configurations for stellar-dbt-public
- (Optional) Update your dbt_project.yml to include project configurations for stellar-dbt-public
- Models from the stellar-dbt-public package/repo will now be available in your new dbt project
Building and Running Locally
Clone the repo
Install required python packages
Install required dbt packages
Running dbt
- There are many useful commands that come with dbt which can be found in the dbt documentation
- stellar-dbt-public is designed to use the
dbt buildcommand which willrunthe model andtestthe model table output - (Optional) run with the
--full-refreshoption
- Subsequent runs can be run with incremental mode (only inserts the newest of data instead of rebuilding all of history every time)
- You can also specify just a single model if you donβt want to run all stellar-dbt-public models