@vicino/pg-db
v0.1.0
Published
Package for connecting to a Postgres database and performing some basic operations.
Downloads
5
Readme
pg-db
Package for connecting to a Postgres database and performing some basic operations.
Installation
npm install --save @vicino/pg-db
Usage
Connecting to Postgres
const pg = require('@vicino/pg-db');
const connectionString = 'postgresql://dbuser:[email protected]:3211/mydb';
const db = pg({
connectionString,
});
db.query('select now()');