olivierphi / Node-DBI

A SQL database abstraction layer strongly inspired by the PHP Zend Framework Zend_Db API, with support of multiple Node.js database engines
https://github.com/DrBenton/Node-DBI
93 stars 22 forks source link

Named bind variables #28

Open bcowgill opened 10 years ago

bcowgill commented 10 years ago

Perl's DBI module supports named bind parameters instead of ordered ? marks. Is node-dbi trying to be like perl's DBI and would it be possible to have named bind parameters?

query: "SELECT count(*) as num_posters FROM posters WHERE uid < :UID;"

something like: fetchAll(query, { UID: 12 }, fn);