jeromew
6249052bc8
Add test for copy from client reuse
6 years ago
jeromew
291e257116
Add test for copy-to pg client re-use
6 years ago
jeromew
90480c7cfa
Fix copy-to test intermittent 'unhandled promise rejection' bug
6 years ago
jeromew
1c3271ad06
Do not use deprecated Buffer constructor (ported from CartoDB's fork)
6 years ago
jeromew
43bc2cac7b
Use strict (ported from CartoDB's fork)
6 years ago
jeromew
8174e10fb5
Merge pull request #54 from jeromew/upstream-end
...
Test: `end` event should not be triggered 2 times on copy-from
8 years ago
jeromew
ade7ab95a0
Test: `end` event should not be triggered 2 times on copy-from
8 years ago
jeromew
a5e532f20b
Bugfix - wrong tests on chunk frontiers
8 years ago
jeromew
f155899570
Add a test for NoticeResponse handling ( #51 )
8 years ago
Jonathan Bergknoff
0f0ddf7ad4
Expose row count after COPY FROM command ( #37 )
...
* Expose row count after COPY FROM command
* correct conditional
8 years ago
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
9 years ago
Dan
b1b613125f
Better test of error handling after initial response.
10 years ago
Brian M. Carlson
d6eab36b66
Make tests a bit more robusto
10 years ago
Dan
b78a3eb845
Accept stream options in constructors, pass to internal transform streams.
...
Includes tests.
10 years ago
Dan Robinson
1db9b3ec3d
Adds handling for errors after initial response.
...
Includes a test.
11 years ago
Brian C
208861d057
Merge pull request #11 from drob/add-test
...
Adds a smoke test for copying with BINARY.
11 years ago
Dan Robinson
bef3ba5fcd
Adds a smoke test for copying with BINARY.
11 years ago
Dan Robinson
591a11c955
Fixes another event handler leak.
...
It turns out 'error' handlers were leaking as well, although more slowly.
11 years ago
Dan Robinson
d649905dbb
Fixes an event handler leak.
...
Includes a test. Also includes async as a devDependency.
11 years ago
Brian M. Carlson
2f5b37e0ad
Do not emit row event
11 years ago
Brian M. Carlson
c9c843fd07
Emit 'row' events on streams for progress tracking
11 years ago
Brian M. Carlson
d3d648a623
Initial commit
11 years ago