Skip to content

schema-flow

Define your PostgreSQL database in YAML. Diff against live state. Generate and execute minimal SQL to converge. No migration files. No up/down scripts. Just declare the end state.

Declarative

Describe what your database should look like in YAML. The tool figures out how to get there.

Safe by default

Destructive operations blocked unless explicitly allowed. Advisory locking prevents concurrent runs.

Zero-downtime capable

NOT VALID constraints, CONCURRENTLY indexes, expand/contract column migrations.

Dual interface

Full CLI for operators. TypeScript API for programmatic use. Testing helpers for integration tests.