A CLI tool for comparing and applying PostgreSQL schema changes from SQL source files. Version 1.1.5. It reads a source directory of SQL files, concatenates them into a temporary file, and compares against a target file or database. Designed for development workflows with manual confirmation before executing changes. Differentiates from migration tools by focusing on schema comparison rather than versioned migrations. Low release cadence.
npm install postgres-schema-updaterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure environment variables and run the stage CLI command with verbose flag and connection string.
Use a PTY or expect script to automate, or modify source to accept a --yes flag.
Ensure environment variables or .env file defines CONNECTION_STRING, SOURCE, TMP_FILE, COMPARE_FILE.
Use npx postgres-schema-updater/bin/stage.js or add to scripts in package.json.
Run with npx: npx postgres-schema-updater/bin/stage.js
Set CONNECTION_STRING environment variable or create .env file with CONNECTION_STRING=postgres://...
Define SOURCE and TMP_FILE environment variables or in .env file.