Skip to main content
Compares schemas and optionally row-level data between two build contexts: two targets (e.g. prod:dev) in direct mode, or two virtual environments when virtual mode is enabled. See Data Diffs for detailed usage.

Usage

The first argument is a positional FROM:TO range. Exactly one mode is required: --full, --schema-only, or --bounded <duration>. In direct mode, FROM and TO are configured target names. Their database/schema namespaces remain authoritative, while the TO target’s named connection executes the complete comparison and must be able to read both namespaces. Full and bounded row comparisons require the model to define unique_key. Bounded mode uses the model’s cursor and falls back to a full row comparison when no cursor is configured.

Flags

Examples

Exit codes

Returns 0 when all selected models have no differences, 1 when any model has schema or row differences.