node-pg-cursor
node-pg-cursor copied to clipboard
Query cursor extension for node-postgres
Following this issue: https://github.com/brianc/node-postgres/issues/1476 --- I have two tables: `users` + `products`, and I have a function that returns two cursors for those: ```js CREATE or replace FUNCTION get_all() RETURNS...
node-pg does not allow using connection while cursor is open. Here an example scenario which works with some other database libraries but with node-pg. 1. create connection > 2. start...
The .read method would be great if it returned a Promise instead of void to handle all the errors and resolved on the Cursor's 'done' state. I can maybe add...
Not sure where/how to PR documentation updates, or whether it is possible at all. This code below in the documentation: ```js cursor.read(100, function (err, rows) => { cursor.close(() => {...
Obviously it's not the purpose of pg-cursor, but sometimes you do not know type of query in advance, but need to implement a common query execution logic. If noData (INSERT/UPDATE/DELETE...
Hi, I am looking for a way to accomplish select for updates in Postgresql from NodeJS. Your module seems quite good for reading a cursor, but is there a way...