Brian C
19308f9ceb
Result.fields should always be an array ( #2060 )
...
This fixes a subtle backwards incompatible change. Added a test to prevent further regressions. Closes #2056
2020-01-09 21:30:53 -06:00
Brian C
8eca181d20
Fix pg-query-stream implementation ( #2051 )
...
* Fix pg-query-stream
There were some subtle behaviors with the stream being implemented incorrectly & not working as expected with async iteration. I've modified the code based on #2050 and comments in #2035 to have better test coverage of async iterables and update the internals significantly to more closely match the readable stream interface.
Note: this is a __breaking__ (semver major) change to this package as the close event behavior is changed slightly, and `highWaterMark` is no longer supported. It shouldn't impact most usage, but breaking regardless.
* Remove a bunch of additional code
* Add test for destroy + error propagation
* Add failing test for destroying unsubmitted stream
* Do not throw an uncatchable error when closing an unused cursor
2019-12-29 23:08:09 -06:00
Brian M. Carlson
6d93951783
Publish
...
- pg-cursor@2.1.2
- pg-query-stream@2.1.2
- pg@7.17.0
pg-cursor@2.1.2
pg-query-stream@2.1.2
pg@7.17.0
2019-12-29 17:50:24 +00:00
Brian M. Carlson
c8b9488d7c
Update changelog
2019-12-29 17:45:50 +00:00
Brian C
6b39253a54
Merge pull request #2049 from aheuermann/idle_in_transaction_session_timeout
...
Adding ability to pass through idle_in_transaction_session_tim…
2019-12-29 11:38:30 -06:00
Brian M. Carlson
af4d05445d
Publish
...
- pg-cursor@2.1.1
- pg-pool@2.0.9
- pg-query-stream@2.1.1
- pg@7.16.1
pg-cursor@2.1.1
pg-pool@2.0.9
pg-query-stream@2.1.1
pg@7.16.1
2019-12-28 17:16:42 +00:00
Brian C
0b87d494ad
Merge pull request #2048 from brianc/bmc/add-pg-pool
...
Add pg-pool to monorepo
2019-12-28 10:28:26 -06:00
Andrew Heuermann
6ddbe6ab60
Close connection after version check
2019-12-28 09:24:45 -06:00
Andrew Heuermann
839043206d
Only run tests on >= v10
2019-12-28 09:02:04 -06:00
Andrew Heuermann
6363778675
Fixing test
2019-12-27 16:04:45 -06:00
Andrew Heuermann
bb8e806bc5
Adding ability to pass through idle_in_transaction_session_timeout
2019-12-27 15:31:19 -06:00
Brian M. Carlson
637bcf355c
Cleanup things a bit
2019-12-27 17:52:28 +00:00
Brian M. Carlson
4c27ad294f
Add 'packages/pg-pool/' from commit 'cb96ae2d6e37b1414df405d80258e0e2bafeaba0'
...
git-subtree-dir: packages/pg-pool
git-subtree-mainline: 69345eb96aa2552b288247960aa7126d41210eb6
git-subtree-split: cb96ae2d6e37b1414df405d80258e0e2bafeaba0
2019-12-27 04:01:42 +00:00
Brian M. Carlson
69345eb96a
Publish
...
- pg-cursor@2.1.0
- pg-packet-stream@1.1.0
- pg-query-stream@2.1.0
- pg@7.16.0
pg-cursor@2.1.0
pg-packet-stream@1.1.0
pg-query-stream@2.1.0
pg@7.16.0
2019-12-27 03:56:07 +00:00
Brian M. Carlson
1cf64444ad
Update changelog
2019-12-27 03:55:24 +00:00
Brian C
cc3b09301b
Merge pull request #2045 from brianc/bmc/add-pretest-and-prepublish
...
Add pretest and prepublish script
2019-12-26 21:52:35 -06:00
Brian M. Carlson
01e0644b99
Add pretest and prepublish script
2019-12-27 03:39:56 +00:00
Brian C
3278dced6e
Merge pull request #2044 from brianc/bmc/packet-stream-parser
...
Add packet stream parser
2019-12-26 21:36:26 -06:00
Brian C
2431a63853
Merge pull request #2042 from brianc/bmc/callback-on-ready
...
Fire close callback when ready for next query
2019-12-26 21:30:06 -06:00
Brian M. Carlson
6168f2ee0d
Disable lint on missing module since the file is not included
2019-12-27 03:22:30 +00:00
Brian M. Carlson
89b451e934
Properly merge dockerfile
2019-12-27 03:15:51 +00:00
Brian M. Carlson
68e063e30c
Merge origin/master
2019-12-27 02:59:42 +00:00
Brian M. Carlson
766e48f34a
Update types & move some configs around
2019-12-27 02:55:18 +00:00
Brian M. Carlson
47af4e810f
Don't modify path
...
vscode remote docker does some crazy path overriding...I think this messed it up somehow. Anyways, no need to do this.
2019-12-26 19:20:43 +00:00
Brian M. Carlson
5a6166d0ae
Fire close callback when ready for next query
...
Working on fixing some timing issues in pg-query-stream it uncovered an issue where the cursor is firing its 'close' callback before it's actually entirely ready to dispatch another query. This change makes the close callback trigger when the connection re-enters `readyForQuery` state.
2019-12-26 18:36:29 +00:00
Brian M. Carlson
d28d826857
Ignore markdown changes in lerna updated
2019-12-26 18:03:06 +00:00
Brian M. Carlson
5c5dcc5b34
Add node_modules to dockerfile path
2019-12-26 17:50:11 +00:00
Brian M. Carlson
75c94dc7fd
Update readme
...
Add links to pg module and pg-query-stream module
2019-12-26 17:48:15 +00:00
Brian M. Carlson
dfae78e383
Publish
...
- pg-cursor@2.0.3
- pg-query-stream@2.0.2
- pg@7.15.2
pg-cursor@2.0.3
pg-query-stream@2.0.2
pg@7.15.2
2019-12-26 17:42:55 +00:00
Brian M. Carlson
30fb8fbec4
Improve dockerfile prompt
2019-12-26 17:40:03 +00:00
Brian C
b5d584743a
Merge pull request #2041 from brianc/bmc/add-remote-conatiner
...
Add devcontainer for working on windows
2019-12-26 11:05:51 -06:00
Brian M. Carlson
0167a4177c
Add devcontainer for working on windows
2019-12-26 16:56:30 +00:00
Brian M. Carlson
e034010811
Add docker devcontainer stuff
2019-12-26 16:45:37 +00:00
Brian C
582b56d701
Merge pull request #2036 from brianc/bmc/update-readme
...
Update readme
2019-12-23 10:50:12 -06:00
Brian C
bd3efaac02
Merge pull request #2035 from brianc/bmc/add-pg-query-stream
...
Add pg-query-stream module
2019-12-23 10:49:09 -06:00
Brian M. Carlson
c090e4fdaf
Actually update the right file in the right place...
2019-12-20 17:53:26 -06:00
Brian M. Carlson
8b7e874a37
Update readme
2019-12-20 17:48:26 -06:00
Brian M. Carlson
fdae8516e6
Delete files which are no longer needed as they exist in the monorepo
2019-12-20 15:10:26 -06:00
Brian M. Carlson
6b7b8d19f5
Do not run tests in parallel
2019-12-20 15:03:43 -06:00
Brian M. Carlson
ef2f2d264d
Unify lint
...
Delete accidental addition
2019-12-20 13:46:51 -06:00
Brian M. Carlson
86073026ee
Run gitsubtree merge
2019-12-20 12:09:22 -06:00
Brian M. Carlson
db1b95e5f3
Add 'packages/pg-query-stream/' from commit '9ced05e8aab65f3fdf1a67add87bfc9035e487e8'
...
git-subtree-dir: packages/pg-query-stream
git-subtree-mainline: cccf84e14b3281b753e1baab7bc194aaac5024a8
git-subtree-split: 9ced05e8aab65f3fdf1a67add87bfc9035e487e8
2019-12-20 12:00:58 -06:00
Brian M. Carlson
b0be9da986
Cleanup
2019-12-19 18:57:48 -06:00
Brian M. Carlson
a7c70a9acf
All tests passing
2019-12-19 17:44:00 -06:00
Brian C
0189c958f6
Create FUNDING.yml
2019-12-19 16:49:38 -06:00
Brian M. Carlson
e500479382
Add streaming parser
2019-12-19 14:41:05 -06:00
Brian M. Carlson
fa44905b30
port over some tests
2019-12-19 14:33:37 -06:00
Brian M. Carlson
cb96ae2d6e
Drop node 4.0 from test matrix
2019-12-19 08:16:52 -06:00
Brian M. Carlson
e302c4c6ff
Bump version
2019-12-19 08:13:27 -06:00
Brian M. Carlson
5edcfcb68d
Add yarn.lock file
2019-12-19 08:13:17 -06:00