mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-25 16:03:13 +00:00
Some advertisement on sql-template-strings module
parent
6d572c4da1
commit
f5199eb6a4
@ -36,6 +36,8 @@ function SQL(parts, ...values) {
|
||||
client.query(SQL`select name from user where id=${userId} and password=${password}`, callback);
|
||||
```
|
||||
|
||||
If you want it as a module, take a look at [sql-template-strings](https://www.npmjs.com/package/sql-template-strings).
|
||||
|
||||
##Prepared Statements##
|
||||
|
||||
A prepared statement lets postgres plan the statement so that each execution takes advantage of the
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user