Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Named bind variables #28

Open
bcowgill opened this issue Jul 1, 2014 · 0 comments
Open

Named bind variables #28

bcowgill opened this issue Jul 1, 2014 · 0 comments

Comments

@bcowgill
Copy link

bcowgill commented Jul 1, 2014

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant