In virtual mode,Documentation Index
Fetch the complete documentation index at: https://docs.sqlbuild.com/llms.txt
Use this file to discover all available pages before exploring further.
sqb diff compares VDE ref sets within the same physical environment. It shows which models have different version hashes and, for changed models, reports schema and row-level differences.
Basic usage
<left_vde>:<right_vde>. Both VDEs must exist in the active physical environment’s state store.
What diff shows
- Ref comparison - which models have different version hashes between the two VDEs
- Schema differences - column additions, removals, and type changes for changed models
- Row differences - row counts, matched/unmatched rows, and changed column values
Options
Working VDE guard
If either VDE is working (has stale models that haven’t been built yet), diff is blocked by default because the comparison may be incomplete:Comparison with direct-mode diff
In direct mode,sqb diff prod:dev compares physical environment schemas and data directly in the warehouse. In virtual mode, sqb diff dev:pr_123 compares VDE pointer sets within a single physical environment, then inspects the physical versions those pointers reference.
The output format is the same - schema diffs, row counts, changed columns, and example rows. The difference is what is being compared: physical environments vs virtual pointer sets.
