gulliver_diff
Compare two queries or tables by key to find missing, extra, or changed rows, proving refactors and migrations preserve the same data across connections.
Instructions
Data diff: do two queries or tables return the same rows? Compares by key inside the engine (hashed buckets, scales to billions of rows), then lists sample keys that are missing, extra or changed. Sides may be on different connections. Both queries are priced first; over budget it returns status block instead of running. Use it to prove a refactor or migration keeps the same rows; use gulliver_drift for schema changes, gulliver_check for rules on one table.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Column(s) that identify a row. | |
| left | Yes | Left query or table name (e.g. the current model). | |
| right | Yes | Right query or table name (e.g. the refactored model). | |
| columns | No | Only compare these columns (key always included). Omit to compare all shared columns. | |
| connection | No | Connection name as listed by gulliver_status (from gulliver.toml or GULLIVER_DSN). Omit for the default connection. | |
| right_connection | No | Connection for the right side, if different. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| next_step | Yes |