Node-DBI icon indicating copy to clipboard operation
Node-DBI copied to clipboard

Named bind variables

Open bcowgill opened this issue 10 years ago • 0 comments

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);

bcowgill avatar Jul 01 '14 13:07 bcowgill