@flexfactory/db-utils
v2.1.0
Published
A utils library for service dbs
Downloads
1
Readme
db-utils
Install
npm i --save @flexfactory/db-utils
Usage
getPGClient
const { getPGClient } = require('@flexfactory/db-utils');
const client = getPGClient({
database: process.env.DATABASE_NAME,
host: process.env.POSTGRES_HOST,
user: process.env.POSTGRES_USERNAME,
password: process.env.POSTGRES_PASSWORD,
});