node-pg-cursor icon indicating copy to clipboard operation
node-pg-cursor copied to clipboard

Query cursor extension for node-postgres

Results 16 node-pg-cursor issues
Sort by recently updated
recently updated
newest added

We're encountering an issue with cursors on Redshift, which seems to manifest itself specifically when we only request a single row from the cursor. Requesting more than 1 seems to...

Hey Brian, I tweeted you about trying to get next results and you asked me to gist and open an issue here. I already solved my problem in code, but...

Streams are widely supported concept. There are many libraries to operate on streams, manage backpressure, map, filter results, pause them etc. Moreover, since Node 10 `stream.Readable` automatically support [asynchronous iteration...

It seems that if the query is badly written and error occured, the `handleError` does not clean up the listener for the said events.

Sorry if ignorant here. Since cursors open a transaction, I assume it will be left to the query planner to determine the best way to execute. Just wondering about the...

The local testing setup mentioned in #47. It just requires Docker. Also, changed Travis to run tests on Node v10 instead of Node v4.

Hello, I was trying to use this against a redshift instance with the following test script: ```javascript const { Pool } = require('pg'); const config = require('./src/lib/config'); const credentials =...

Is there a way to get cursor support on typescript? currently getting this error: new _pgCursor.Cursor(sqlQuery, ''); ^ TypeError: _pgCursor.Cursor is not a constructor

I get this error with webpack 4.16.5: ``` ERROR in ./node_modules/pg-cursor/pg.js Module not found: Error: Can't resolve 'pg.js/lib/result.js' in 'C:\Users\Andreas\workspace\ubiq_reports\server\node_modules\pg-cursor' @ ./node_modules/pg-cursor/pg.js 8:26-56 @ ./node_modules/pg-cursor/index.js @ ./report_main.js @ multi ./report_main.js...

`function Cursor (text, values, config) ` - Cursor has config and rowMode, but this is not mentioned in docs