models/ directory in the SQLBuild project.
Referencing dbt models
SQLBuild models reference dbt model outputs with__dbt_ref("package", "model"):
analytics.fact_orders). The dbt model becomes an upstream dependency in the combined graph, so SQLBuild models downstream of it build against its output.
SQLBuild models can also reference other SQLBuild models with __ref() as usual:
Tests, audits, and scenarios
SQLBuild models added downstream of dbt get SQLBuild’s full validation surface:- Unit tests can mock dbt model dependencies with
__dbt_ref__fixture CTEs, so you can test a SQLBuild model without a warehouse connection or a compiled dbt manifest. See Testing. - Audits declared inline in the
MODEL()header block promotion when they fail, the same as in a standalone SQLBuild project. See Audits. - Scenarios run the combined graph against fixture inputs for end-to-end checks. See Scenarios.

