npm

psql-handler-nt

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i psql-handler-nt

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

11.5 kB

Total Files

5

Last publish

Collaborators

  • nicolas.garnier