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 schemas and optionally row-level data between two environments. See Environment Diffs for detailed usage.Usage
--full, --schema-only, or --bounded <duration>.
Flags
| Flag | Description |
|---|---|
--from | Source environment (required) |
--to | Target environment (required) |
--full | Compare both schema and all row data |
--schema-only | Compare column names and types only |
--bounded | Compare row data within a recent window (e.g. 14d, 6h) |
--verbose, -v | Show more example rows (default: 3, verbose: 10) |
--max-column-examples | Override maximum examples per changed column |
--max-row-only-examples | Override maximum examples for side-only rows |
--no-sql-validation | Skip compile-time SQL syntax validation |
--select, -s | Select specific models to diff (required in v1) |
--exclude | Exclude specific models from diffing |
Examples
Exit codes
Returns0 when all selected models have no differences, 1 when any model has schema or row differences.
