Podil is a lightweight and secure Postgres migration tool for Node.js, designed to run migrations automatically on application startup. The current stable version is 0.3.7, released with a focus on simplicity and security. It features checksum verification of migration scripts to prevent accidental schema corruption, and has no runtime dependencies beyond a PostgreSQL client (pg). Unlike other migration tools, Podil emphasizes minimalism and security, with built-in checksum storage and verification. It supports custom migration directories and optional checksum disabling. The package ships TypeScript types and requires the 'pg' package as a peer dependency. Release cadence is irregular; it is actively maintained.
npm install podilNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing podil, calling migrate with a connection string and options, including error handling.
Update import to `import { podil } from 'podil'` and call `podil.migrate()` instead of `podil()`.Run `npm install pg` alongside podil.
Name files like '001__init.sql', '002__add_table.sql', etc.
Optionally set `verifyChecksum: false` in options, or ensure scripts are never modified after execution.
Run `npm install pg`.
Change `import podil from 'podil'` to `import { podil } from 'podil'` and call `podil.migrate()`.If intentional, disable checksum verification with `{ verifyChecksum: false }` or restore the original script content.Add IF NOT EXISTS to SQL statements or ensure migrations are idempotent.