ucrit

1.2.8 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i ucrit

Weekly Downloads

0

Version

1.2.8

License

MIT

Last publish

Collaborators

  • diorahman