pistachio is a declarative schema management tool for PostgreSQL with a Terraform-like plan/apply workflow.
https://winebarrel.github.io/pistachio/ ↗// readme
pistachio is a declarative schema management tool for PostgreSQL with a Terraform-like plan/apply workflow. You write the schema you want as DDL in SQL files. pistachio compares the database with the files and prints the DDL that makes the database match.
pista plan prints that DDL. pista apply runs it. pista dump writes the files from an existing database.
[!NOTE] Since 1.81.0, pistachio supports Amazon Aurora DSQL with
--engine dsql. See the Aurora DSQL guide. This should not change how pistachio works with PostgreSQL. If you find a problem, please open an issue.
[!TIP] The playground runs
pista diffon two schemas that you edit in the page. There is nothing to install.
Documentation | Getting started | Guides | Commands | [Supported…