wait-for-postgres

Wait for a Postgres connection to become available

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-postgres
Usage

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 --quiet
Building

cake build

Repository

https://github.com/joeledwards/node-wait-for-postgres.git


上一篇:wait-for-redis
下一篇:durations

相关推荐

官方社区

扫码加入 JavaScript 社区