node-pg-query
node-pg-query copied to clipboard
Simple helper to run queries with node-postgres
I get this error when on the later version TypeError: (query.pg || pg).connect is not a function at module.exports (/Users/Freddy/project/node_modules/pg-query/index.js:48:20) switching back to 6.0.3 fixes the issue.
I expect it is the change to promise-ifying node-postgres after v5, but upgrading pg from v4.4.0 to v6.1.0 seems to break pg-query. I get no error message but my web...
Squel allows users a programmatic way of generating SQL requests which I've been using in my personal projects. I've also been using pg-query, which is pretty neat! One of the...
I use pg-query mostly inside promise chains, and was a little surprised to learn that `query.first` does not return a promise when no callback is passed. So I've added that...
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.
When used as default in an app (such as an express web app), you're only able to have one connection at a time. We've got a use case which would...
Hi Brian, I have some questions and comments from my beginning usage of the client object in node-postgres. The function query.client can contain an optional callback function function callback(object error,...
_do not merge_ This changes it to export a factory function instead of a singleton. I needed this to have two seperate connections open. What are your thoughts? The api...
At least make such option. This is great script, very simple and convenient! Though one thing is inconvenient - library pushes developer to handle errors. This is not likely what...