diff --git a/index.js b/index.js index 858b48d..a056df3 100644 --- a/index.js +++ b/index.js @@ -55,7 +55,7 @@ CopyStreamQuery.prototype.handleError = function(e) { this.emit('error', e) } -CopyStreamQuery.prototype.streamData = function(connection) { +CopyStreamQuery.prototype.handleCopyInResponse = function(connection) { this.pipe(connection.stream) } diff --git a/package.json b/package.json index 320ae33..e596a02 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pg-copy-streams", - "version": "0.2.0", + "version": "0.2.1", "description": "Low-Level COPY TO and COPY FROM streams for PostgreSQL in JavaScript using", "main": "index.js", "scripts": {