This module allows a simple connection to a postgres database.
It uses the pg-promise module.
$ yarn install psql-handler-nt --save
-
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