pg-query-stream
Advanced tools
Comparing version
@@ -8,3 +8,3 @@ 'use strict' | ||
super(Object.assign({ objectMode: true }, options)) | ||
this.cursor = new Cursor(text, values) | ||
this.cursor = new Cursor(text, values, options) | ||
this._reading = false | ||
@@ -11,0 +11,0 @@ this._closed = false |
{ | ||
"name": "pg-query-stream", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Postgres query result returned as readable stream", | ||
@@ -33,4 +33,5 @@ "main": "index.js", | ||
"eslint-plugin-standard": "^3.0.1", | ||
"mocha": "^3.5.0", | ||
"mocha": "^6.2.2", | ||
"pg": "^7.5.0", | ||
"prettier": "^1.18.2", | ||
"stream-spec": "~0.3.5", | ||
@@ -40,5 +41,11 @@ "stream-tester": "0.0.5", | ||
}, | ||
"prettier": { | ||
"semi": false, | ||
"printWidth": 120, | ||
"trailingComma": "es5", | ||
"singleQuote": true | ||
}, | ||
"dependencies": { | ||
"pg-cursor": "2.0.0" | ||
"pg-cursor": "^2.0.1" | ||
} | ||
} |
@@ -38,3 +38,3 @@ # pg-query-stream | ||
This is especially useful when doing [ETL](http://en.wikipedia.org/wiki/Extract,_transform,_load) on a huge table. Using manual `limit` and `offset` queries to fake out async itteration through your data is cumbersom, and _way way way_ slower than using a cursor. | ||
This is especially useful when doing [ETL](http://en.wikipedia.org/wiki/Extract,_transform,_load) on a huge table. Using manual `limit` and `offset` queries to fake out async itteration through your data is cumbersome, and _way way way_ slower than using a cursor. | ||
@@ -41,0 +41,0 @@ _note: this module only works with the JavaScript client, and does not work with the native bindings. libpq doesn't expose the protocol at a level where a cursor can be manipulated directly_ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
23
9.52%357
12.62%18589
-69.4%14
7.69%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
Updated