Skip to content

olalonde/node-postgres-namedparams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: 'bob@bob.com'
};

client.query('INSERT INTO users (username) VALUES ($username, $email)', user, cb);

About

Add named params support to node-postgres

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published