Pomp is a minimal, one-way PostgreSQL migration tool (v0.2.16) that executes SQL files from a `migrations` folder sequentially by timestamp prefix. It uses standard psql environment variables or `POSTGRES_URL` for connection, providing a CLI (`npx pomp new/run/pending/skip`) and a programmatic API (`Pomp` class). Designed for simplicity with no framework dependencies, it differs from tools like `node-pg-migrate` or `knex` by focusing solely on unidirectional migrations without down/rollback support. Ships TypeScript types and works via ESM imports. Release cadence is irregular; check changelog.
npm install pompNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes Pomp with a postgres connection, reads migration files from './migrations', and runs all pending migrations.
Use `import { Pomp } from 'pomp'` instead of `import Pomp from 'pomp'`.Ensure migrations directory exists or set `POMP_WD` before running.
Use timestamps (e.g., 1699000000) for version numbers.
Update your implementation to return an array (even if empty) from `runSqlQuery`.
Switch to ESM ("type": "module" in package.json) or use dynamic import: `import('pomp')`.Change `import Pomp from 'pomp'` to `import { Pomp } from 'pomp'`.Create a 'migrations' folder in the working directory or set `POMP_WD` environment variable.
Ensure the connected database user has CREATE TABLE privileges, or manually create the table: `CREATE TABLE public._pomp_migrations (version bigint);`