1.0.0 • Published 6 years ago
psql-handler-nt v1.0.0
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 ````json { "host": "127.0.0.1",
"port": 5432, "database": "test", "user": "user", "password": "SECRET" }
````
connection() Returns the current connection