Skip to content

bigbadweb/postgres-database-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Posgres Database Wrapper

Install

npm install --save https://github.com/bigbadweb/postgres-database-wrapper.git

Usage

Depends on the pg npm package - npm install pg;

const Database = require('@bigbadweb/postgres-database-wrapper');

const db = new Database('postgres://user:pass@dbhost:5342/dbname?sslmode=disable');

const params = [99]
let result = await db.query('SELECT * FROM table WHERE id = $1', params).catch(err => {
        // handle err
    })

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published