Pistachio is a declarative schema migration tool similar to sqldef, with a Terraform-like plan/apply workflow.

I created this tool because there were some SQL statements that sqldef couldn't parse.

Pistachio uses pg_query_go.

Demo: docker run --rm -it ghcr.io/winebarrel/pistachio-demo

Show HN: Pistachio – Declarative schema management for PostgreSQL
github.com