postgresql-tag
0.1.0 • Public • Published pg-sql-tag
Use ES6 tagged template string to generate query objects which can be escaped by node-postgres
.
Status

Installation
Install the package via npm
:
$ npm install postgresql-tag
Usage
import pgsql from 'pgsql-tag';
const email = readEmailFromUntrustedInput();
pg.query(pgsql`SELECT name FROM users WHERE email=${email}`, (err, res) => ...);
License
MIT Clément Fiorio <clement.fiorio@gmail.com>
Contributors
Elie Rotenberg
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
0.1.0 | 3 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
0.1.0 | 3 | |
Package Sidebar
Install
Weekly Downloads