Skip to main content
stellar-dbt-public GitHub repository

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.yml in 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 build command which will run the model and test the model table output
  • (Optional) run with the --full-refresh option
  • 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
Please see the stellar-dbt-public/modles/marts directory to see a full list of the available models that dbt can run