wait-for-postgres

2019-11-10 admin

wait-for-postgres是什么

什么是wait-for-postgres,Wait for a Postgres connection to become available

wait-for-postgres使用教程帮助文档

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

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-78934.html

文章标题:wait-for-postgres

回到顶部