gulliver_translate
Translate SQL between DuckDB, Postgres, BigQuery, and Snowflake, warn about syntax that may not carry over, and optionally preflight the result on a target connection before migration.
Instructions
Translate SQL between DuckDB, Postgres, BigQuery and Snowflake, with warnings for anything that may not carry over. With a connection of the target dialect it also preflights the result there. Otherwise no database is used. Use it for migrations between engines; check the warnings before trusting the result, and use gulliver_diff to compare the rows on both engines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Exactly one SQL statement (SELECT/WITH) in the connection's dialect. Several statements are rejected. | |
| connection | No | Connection name as listed by gulliver_status (from gulliver.toml or GULLIVER_DSN). Omit for the default connection. | |
| to_dialect | Yes | SQL dialect used to parse the models. | |
| from_dialect | No | SQL dialect used to parse the models. | duckdb |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| next_step | Yes |