Package Exports
- wait-for-postgres
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (wait-for-postgres) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Wait for Postgres
Waits for a PostgreSQL connection to become available, optionally running a custom query to determine if the connection is valid.
Installation
npm install --save wait-for-postgresUsage
Run as a module within another script:
waitForPg = require 'wait-for-postgres'
config =
username: user
password: pass
quiet: true
query: 'SELECT 1'
waitForPg.wait(config)Or run stand-alone
wait-for-postgres --username=user --password=pass --quietBuilding
cake build