Commit Graph

15 Commits

Author SHA1 Message Date
jeromew
cffae659b8 perf: remove one call to push in copy-from transform loop 2019-03-20 09:21:28 +00:00
jeromew
1c3271ad06 Do not use deprecated Buffer constructor (ported from CartoDB's fork) 2019-03-14 18:00:12 +00:00
jeromew
43bc2cac7b Use strict (ported from CartoDB's fork) 2019-03-14 17:49:55 +00:00
jeromew
b2e108571e Issue #54: We should probably delay the _flush cb() to CommandComplete 2016-07-30 00:08:54 +00:00
jeromew
7003f6070f Fix issue #54: end is being triggered 2 times 2016-07-29 23:51:41 +00:00
jeromew
2a4db2920e Fix NoticeResponse test and handle other messages (#52) 2016-07-28 16:13:22 -05:00
jeromew
ae5b344395 Refactor message format codes handling (#45) 2016-07-26 14:39:48 -05:00
jeromew
ee84aba89f Use end stream option instead of not calling _flush callback (#44) 2016-07-26 14:39:33 -05:00
Jonathan Bergknoff
0f0ddf7ad4 Expose row count after COPY FROM command (#37)
* Expose row count after COPY FROM command

* correct conditional
2016-05-24 17:20:16 -05:00
Brian C
c4a0e6dd58 Fix compatibility with newer versions of node (#39)
* Eliminate detach/reattach strategy as it isn't able to differentiate between on/once and inconsistenly loses unshifted data depending on node version.  Instead just split stream and send it to copy stream and the connection.stream at the same time.  Disconnecting copy stream just means unpiping.  Added handleCopyData to fulfill query contract but ignore the incoming data.

Add node 4.2.2 to Travis
Minimum postgres 9.2 to allow tests to complete in Travis

Remove test that is no longer needed since we no longer disconnect/reconnect listeners

* Add resume

* Remove node 0.10 and add 0.12

* Re-enable old tests

* Add more versions to the travis test matrix
2016-05-03 13:20:04 -05:00
Dan
b78a3eb845 Accept stream options in constructors, pass to internal transform streams.
Includes tests.
2014-09-15 15:01:39 -04:00
Brian M. Carlson
dc6521b7c1 Fix to work with pg >= 2.8.2 2013-12-09 11:41:17 -05:00
Brian M. Carlson
2f5b37e0ad Do not emit row event 2013-10-28 21:50:45 -05:00
Brian M. Carlson
c9c843fd07 Emit 'row' events on streams for progress tracking 2013-10-28 21:27:15 -05:00
Brian M. Carlson
d3d648a623 Initial commit 2013-10-28 17:31:11 -05:00