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 change detection and reuse continue to work across the boundary: when a referenced dbt model changes, the SQLBuild models downstream of it rebuild.
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 and debug. - 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.

