postgres-client

1.0.1 • Public • Published

postgres-client

A simple lightweight async postgres client library wrapper.

Installation

npm install --save postgres-client

Configuration

The expected configuration connection string should be in the following format.

{"user":"postgres-admin", "database":"xxxx", "host": "xxxx", "port": 5432, "password": "xxx"}

Usage

let pgClient = require("postgres-client");
pgClient(process.env.CONNECTION_CONFIG, "select * from users", (error, results) =>{})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    7
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    7
  • 1.0.0
    1

Package Sidebar

Install

npm i postgres-client

Weekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • erikschlegel