PostgreSQL adapter for Immigration, a database migration tool. Version 2.0.0 is current stable; the adapter automatically manages a migration tracking table and connects to Postgres via the `pg` library's Pool. It integrates with Immigration's CLI and programmatic API, allowing users to specify connection config via file or inline Pool options. Differentiator: lightweight, no ORM dependency.
npm install immigration-postgresNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to instantiate the adapter with a connection string and run migrations.
Use createAdapter(options) directly instead of new Adapter(options).
Move Pool options to the adapter constructor arguments.
Always specify table name in options.
Use parameterized queries or validate migration names.
Run npm install immigration immigration-postgres
Use import { createAdapter } from 'immigration-postgres'Provide table name in adapter options: { table: 'migrations' }