JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q62779F
  • License ISC

Helpers for quering a postgres database

Package Exports

  • pg-helpers

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pg-helpers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

pg-helpers

A list of helpers to query a Postgres database

Tests

By default the tests will run with the following configuration for Postgres:

{
  user: 'postgres',
  database: 'test',
  password: '',
  host: 'localhost',
  port: 5432,
  max: 10,
  idleTimeoutMillis: 30000
};

You can change this default values by defining the following environment variable in a .env file:

PG_USER=user_pg
PG_PASSWORD=the_password
PG_DATABASE=the_db_name