@nikositech/psql-handler-nt
v1.0.3
Published
Simple Postgres connection handler. Based on pg-promise.
Downloads
1
Readme
PSQL Handler
This module allows a simple connection to a postgres database. It uses the pg-promise module.
Installation
$ yarn install psql-handler-nt --save
Documentation
connect(config) This function connects to the postgres @param config {object}
Example of config
{ "host": "127.0.0.1", "port": 5432, "database": "test", "user": "user", "password": "SECRET" }
connection() Returns the current connection