@jcoreio/get-pg-config
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@jcoreio/get-pg-config

apply default postgres connection config from dotfiles and .pgpass

CircleCI Coverage Status semantic-release Commitizen friendly npm version

This solves two minor problems with pg's default connection parameters:

  • it doesn't read ~/.pgpass/PGPASSFILE
  • user defaults to the OS user. In our work we always use Docker and the postgres user, so we can configure that as the default with the following in package.json or .get-pg-configrc etc:
    "get-pg-config": {
      "defaults": {
        "user": "postgres"
      }
    }

Package Sidebar

Install

npm i @jcoreio/get-pg-config

Weekly Downloads

637

Version

1.0.1

License

MIT

Unpacked Size

7.73 kB

Total Files

5

Last publish

Collaborators

  • jrmclaurin
  • jedwards1211
  • eladendorf
  • avramdodson
  • forrest-keller
  • gravitate1838
OSZAR »