ucrit
v1.2.8
Published
Tagged string for name prepared SQL statement
Downloads
2
Readme
ucrit
A small utility to prepare SQL prepared statement.
var id = 1
var statement = sql`SELECT * FROM table WHERE id = __ARG_${id}`
// you will get
{ text: 'SELECT * FROM table WHERE id = $1',
values: [ 1 ],
name: '773ce390' }
license
MIT