pg-namedparams
v0.0.1
Published
Add named params support to node-postgres
Downloads
3
Readme
node-postgres-namedparams
Add named params support to node-postgres.
TODO: pg.native patching support
Usage:
require('pg-namedparams').patch(pg);
var user = {
username: 'bob',
email: '[email protected]'
};
client.query('INSERT INTO users (username) VALUES ($username, $email)', user, cb);