SQL-only migration manager for PostgreSQL that enforces immutable migrations with hash verification. Current version is 0.0.8, actively developed. Key differentiators: zero configuration, timestamped migration files, SQL-only (no ORM), built-in hash integrity checking to prevent tampering, and a seed command for migrating from other tools. Inspired by goose. Requires only PostgreSQL as a dependency.
npm install guzuNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates programmatic creation and application of migrations with guzu.
Use --force or redo command during development, or manually update the guzu_migrations table.
Ensure every migration file starts with -- +guzu up.
Use -- +guzu NO TRANSACTION only if you understand the risks.
Verify DSN format: postgres://username:password@host:port/database
N/A
Start PostgreSQL and verify DSN. Use localhost instead of ::1 if IPv6 is disabled.
Create the migrations directory and add .sql files with -- +guzu up annotation.
Add -- +guzu up at the top of the SQL file.
No dependency data recorded yet.