2777 Commits

Author SHA1 Message Date
Brian C
71f30faeda Merge pull request #29 from brianc/no-sync-callbacks
Cleanup
2017-08-05 17:28:48 -05:00
Brian M. Carlson
bbefeb8670 Remove unused file 2017-08-05 17:25:13 -05:00
Brian M. Carlson
2ced8f1f2b Integrate eslint 2017-08-05 17:24:49 -05:00
Brian M. Carlson
3675d2b041 Fix to support node@4 LTS 2017-08-05 17:17:24 -05:00
Brian Carlson
a720dc774b Some cleanup 2017-08-05 16:59:20 -05:00
Brian M. Carlson
5a0af8cdd1 Bump version 2017-08-05 15:56:56 -05:00
Brian C
25d978e593 Merge pull request #28 from brianc/rickbergfalk-master
Do not send close after readyForQuery
2017-08-05 15:55:54 -05:00
Brian M. Carlson
620ddc0ded Do not send close after readyForQuery
Close is used to release a named portal (which isn't used by pg-cursor) or when you're early-terminating a cursor on the unnamed portal. Sending 'close' on an connection which has already sent 'readyForQuery' results in the connection responding with a _second_ 'readyForQuery' which causes a lot of issues within node-postgres as 'readyForQuery' is the signal to indicate the client has gone back into the idle state.
2017-08-04 17:40:52 -05:00
Rick Bergfalk
6072bcea8e Merge remote-tracking branch 'brianc/master' 2017-08-04 16:58:34 -04:00
Rick Bergfalk
9c7d2c853e Test cursor with pg-pool 2017-08-04 16:58:32 -04:00
Brian C
a8304f8bac Update README.md
Spelling...
2017-08-04 15:47:45 -05:00
Brian C
d0c18b088d Update README.md
Add Patreon page link
2017-08-04 15:42:51 -05:00
caub
9ab62ff9f3 allow min/max params for pg-pool 2017-08-04 08:58:44 +02:00
Brian M. Carlson
56d262fdfa Bump version v7.1.0 2017-08-03 23:55:07 -05:00
Brian M. Carlson
03e8f7128c Update changelog 2017-08-03 23:55:01 -05:00
caub
3a6b8416c2 allow both connectionString and additional options 2017-08-03 23:53:00 -05:00
Brian C
6517207690 Create SPONSORS.md 2017-08-03 23:51:44 -05:00
Brian Carlson
c6ee20081f Bump version v7.0.2 2017-07-21 15:03:10 -07:00
Vitaly Tomilov
40cc6aa111 Update utils.js
fixing invalid custom type check
2017-07-21 17:02:06 -05:00
Brian Carlson
66c6776f6e Make client.end return promise with active query 2017-07-21 16:59:24 -05:00
Brian C
d4bb51f08e Merge pull request #1375 from billouboq/remove-unused-var
remove unused variable
2017-07-19 10:41:41 -05:00
Billouboq
5062f275a7 remove unused variable
test
2017-07-19 00:48:20 +02:00
Brian M. Carlson
0921daa7f4 Bump version v7.0.1 2017-07-18 15:41:31 -05:00
Brian C
fc6d9c2997 Merge pull request #1374 from charmander/node-minor-compatibility
Update minimum Node version to 4.5.0
2017-07-18 15:40:50 -05:00
Charmander
482c06bfc8 Update minimum Node version to 4.5.0
`Buffer.alloc` and `Buffer.from` were only backported then.
2017-07-18 13:38:13 -07:00
Brian C
14153f274f Update README.md 2017-07-17 22:27:12 -05:00
Brian Carlson
0c24ff3c12 Update readme 2017-07-17 22:24:06 -05:00
Brian Carlson
cbbd8d45a7 Bump version v7.0.0 2017-07-17 22:08:31 -05:00
Brian Carlson
8a1da112e8 Update changelog 2017-07-17 22:07:58 -05:00
Brian C
8cc7308835 Merge pull request #1369 from brianc/7.0
7.0
2017-07-17 21:53:03 -05:00
Brian M. Carlson
ca4ac9983a Re-implement other patch 2017-07-16 16:39:22 -05:00
Brian M. Carlson
f9390dab6b Re-implement changes from conflict 2017-07-16 16:35:32 -05:00
Brian M. Carlson
8bfdd39c4d Merge remote-tracking branch 'origin/master' into 7.0 2017-07-16 16:32:04 -05:00
Brian M. Carlson
f37acc4a6e Use valid semver in package.json 2017-07-16 16:25:35 -05:00
Brian M. Carlson
111e08d0d7 Cleanup 2017-07-16 16:25:35 -05:00
Brian M. Carlson
ac3102eea2 Add support for pg-native multi-row result 2017-07-16 16:25:35 -05:00
Brian M. Carlson
28b330c88e Add JS driver support for multiple results 2017-07-16 16:25:35 -05:00
Brian C
8798e50ad3 Re-enable eslint with standard format (#1367)
* Work on converting lib to standard

* Finish updating lib

* Finish linting lib

* Format test files

* Add .eslintrc with standard format

* Supply full path to eslint bin

* Move lint command to package.json

* Add eslint as dev dependency
2017-07-15 12:05:58 -05:00
Brian M. Carlson
f7de9ce820 Non-array query values cause query to end with an error.
This is a small change and is _kinda_ backwards compatible since the old behavior was to throw an error, but if someone was relying on anything with `.map` working as values it would break them, so it's in a major semver bump.
2017-07-15 11:19:37 -05:00
Brian Carlson
27450d07e6 Throw on reconnect attempt
Clients are not reusable.  This changes the client to raise errors whenever you try to reconnect a client that's already been used.  They're cheap to create: just instantiate a new one (or use the pool) 😉.

Closes #1352
2017-07-15 11:02:09 -05:00
Brian Carlson
a446537377 Bump version 2017-07-14 14:07:19 -05:00
Brian C
40f5126b6e Fix idle client teardown on error (#68)
- Re-add default idleTimeoutMillis = 10000 by default
- Fix idle timeout clearing on shutdown
- Ensure idleTimeoutMillis is used in timeout
2017-07-14 14:07:07 -05:00
Brian C
2421a769cb Update README.md 2017-07-13 22:40:26 -05:00
Brian Carlson
139cbdea16 Bump version 2017-07-13 22:37:45 -05:00
Brian C
a0eb36d819 2.0 (#67)
* Initial work

* Make progress on custom pool

* Make all original tests pass

* Fix test race

* Fix test when DNS is missing

* Test more error conditions

* Add test for byop

* Add BYOP tests for errors

* Add test for idle client error expunging

* Fix typo

* Replace var with const/let

* Remove var usage

* Fix linting

* Work on connection timeout

* Work on error condition tests

* Remove logging

* Add connection timeout

* Add idle timeout

* Test for returning to client to pool after error

fixes #48

* Add idleTimeout support to native client

* Add pg as peer dependency

fixes #45

* Rename properties

* Fix lint

* use strict

* Add draining to pool.end

* Ensure ending pools drain properly

* Remove yarn.lock

* Remove object-assign

* Remove node 8

* Remove closure for waiter construction

* Ensure client.connect is never sync

* Fix lint

* Change to es6 class

* Code cleanup & lint fixes
2017-07-13 22:37:08 -05:00
Brian Carlson
bc0b03e0b0 Bump version v6.4.1 2017-07-13 22:29:42 -05:00
2Pacalypse-
e52512cedb Adjust the test for arrays of buffers to work across all node versions. 2017-07-13 22:24:52 -05:00
2Pacalypse-
e44d83f02f Add the test for arrays of buffers. 2017-07-13 22:24:52 -05:00
2Pacalypse-
c2af53a24e Properly insert buffers in arrays.
Before this commit, when someone tried to insert a Buffer into an array,
the library would try to escape it (by calling the `escapeElement` on
it), which would fail because buffers don't have a `replace` method.
2017-07-13 22:24:52 -05:00
Luis Montes
45d82320b7 Merge pull request #10 from NoNameProvided/patch-1
Add support for Typescript typings

thanks @NoNameProvided  !
2017-06-27 10:09:14 -07:00