Configure Project dependencies
Last updated
Was this helpful?
Last updated
Was this helpful?
dbt™ Mesh introduces a new method to manage dependencies in your dbt™ project. This allow you to reference models from another project without having to import these as a dbt™️ package.
Instead, you treat your dependency on those models as an API that returns a dataset. The maintainer of the public model is responsible for ensuring its quality and stability.
Use a supported version of dbt 1.7 or greater for both the upstream ("producer") project and the downstream ("consumer") project.
Define models in an upstream ("producer") project that are configured with . You need at least one successful job run after defining their access
.
Have at least one Bolt schedule with a successful run.
To get started, you will to crate a configuration file in your dbt™️ consumer project for Paradime to fetch public models definition from your "producer" project. You will need to provide:
The name of your "producer" project, as defined in your dbt_project.yml
.
The name of a Bolt schedule in your "producer" project, Paradime will use this to fetch and inject model metadata in your "consumer" project.
. The API keys must have the Bolt schedules metadata viewer capability.
To enable cross-project dependencies add a new file named dbt_loom.config.yml
in your "consumer" project git repository and provide the "producer" project configuration.
Ensure the environment variable names match those defined in your dbt_loom.config.yml
After generating the API credentials from your "producer" project, you will need to set these as an environment variable name in the workspace settings of the "consumer" project.
This step is required to enable Bolt to run dbt™️ schedules referencing models in your "producer" project.
Ensure the environment variable names match those defined in your dbt_loom.config.yml
After generating the API credentials from your "producer" project, each user developing in the "consumer" project MUST set the API credentials as an environment variable.
This will allow user to reference "producer" project models while developing in the Paradime Code IDE.
When referencing models from a project-type dependency, always use the two-argument ref
that includes the project name.
Only models with can be referenced from your "producer" project.