var prep = require('pg-prepared')
var item = prep('SELECT * from item WHERE id = ${id}')
client.query(item({id: 5}), function(err, result) {...})
pihvi/pg-prepared
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Prepare pg queries with named arguments.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published