pg-query-stream
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -20,9 +20,6 @@ var assert = require('assert') | ||
var QueryStream = module.exports = function(text, values, options) { | ||
options = options || { | ||
highWaterMark: 100, | ||
batchSize: 100 | ||
} | ||
options = options || { } | ||
Readable.call(this, { | ||
objectMode: true, | ||
highWaterMark: 100 | ||
highWaterMark: options.highWaterMark || 1000 | ||
}) | ||
@@ -34,3 +31,3 @@ this.text = text | ||
this._result = new Result() | ||
this.batchSize = 100 | ||
this.batchSize = options.batchSize || 100 | ||
this._idle = true | ||
@@ -37,0 +34,0 @@ } |
{ | ||
"name": "pg-query-stream", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "Postgres query result returned as readable stream", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "node test" | ||
"test": "make test" | ||
}, | ||
@@ -9,0 +9,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9747
12
215