postgres-schema-updater

1.1.5 • Public • Published

How to use

you can configure parameters with a .env file or via env variable.

The .env file could have contents like:

CONNECTION_STRING=postgres://admin:1234@localhost:5432/apidb
SOURCE=sql/src/**/*sql
TMP_FILE=sql/development.sql
COMPARE_FILE=sql/staging.sql
cd  example
node ../bin/stage.js -v -c "postgres://postgres@localhost:5432/YOUR_DB"

or add "my-stage": "stage" to your scripts section of the package.json file and call stage like:

npm run my-stage -- -v -c "postgres://postgres@localhost:5432/YOUR_DB

You will be asked before anything is performed on the database.

Readme

Keywords

Package Sidebar

Install

npm i postgres-schema-updater

Weekly Downloads

1

Version

1.1.5

License

ISC

Unpacked Size

261 kB

Total Files

11

Last publish

Collaborators

  • valoric