Native bindings
According to the node-postgres docs, you can use native bindings by doing require('pg').native. Would be nice if node-pg-query allowed for that somehow.
Fantastic idea. Any idea of an API? I have one in mind. Should be an easy enhancement.
On Tuesday, December 9, 2014, Luke Horvat [email protected] wrote:
According to the node-postgres docs https://github.com/brianc/node-postgres#native-bindings, you can use native bindings by doing require('pg').native. Would be nice if node-pg-query allowed for that somehow.
— Reply to this email directly or view it on GitHub https://github.com/brianc/node-pg-query/issues/8.
Off the top of my head, there are a few ways:
- Make it a settable property, in a similar vein to
connectionParameters. - Add another parameter to the exported query function e.g.
function(text, values, isNative, cb). - Remove this block and have the developer pass in the peer dependency themselves.
I don't really have a preference. What did you have in mind?
+1 for native bindings