sqlcut-pg

0.1.1 • Public • Published

sqlcut-pg

PostgreSQL API adapter for sqlcut module.

API

"Promises" means "returns promise".

query(sql, paramsArray)

Promises array of results.

var sqlcut = require('sqlcut');
var db = sqlcut('sqlcut-pg', connectionParameters);

db.query('select * from products where name = ?', ['beer']).then(console.log);

License

BSD

Package Sidebar

Install

npm i sqlcut-pg

Weekly Downloads

2

Version

0.1.1

License

BSD

Last publish

Collaborators

  • titarenko