pg-prepared

Prepare pg queries with named arguments.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
pg-prepared
222.5.138 years ago8 years agoMinified + gzip package size for pg-prepared in KB

Readme

Usgae

var prep = require('pg-prepared')

var item = prep('SELECT * from item WHERE id = ${id}')
client.query(item({id: 5}), function(err, result) {...})