31 Commits

Author SHA1 Message Date
Brian M. Carlson
4b9669eaa7 Bump version 2018-11-12 12:32:19 -06:00
Brian Carlson
4d7734a711 Bump version 2017-08-10 09:01:31 -05:00
Brian Carlson
c3417e95eb Bump version 2017-08-10 00:21:10 -05:00
Brian C
53584b704a Add connection & query timeout if all clients are checked out (#70)
* Add connection & query timeout if all clients are checked out

This addresses [pg#1390](https://github.com/brianc/node-postgres/issues/1390).

Ensure connection timeout applies both for new connections and on an exhuasted pool.  I also made the library return an error when passing a function as the first param to `pool.query` - previosuly this threw a sync type error.

* Add pg-cursor to dev deps
2017-08-10 00:20:56 -05:00
Brian Carlson
a446537377 Bump version 2017-07-14 14:07:19 -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 M. Carlson
0c32c57e0e Bump version 2017-06-18 14:09:54 -05:00
brianc
659a448fab Bump version 2017-04-13 10:50:00 -05:00
Brian M. Carlson
5918a9e105 Bump version 2017-04-01 18:43:04 -05:00
Lewis J Ellis
0b3d68ef31 Bump generic-pool dep to 2.4.3 (#35) 2017-04-01 11:31:33 -05:00
Brian Carlson
ab70f57923 Bump version 2016-12-04 17:27:10 -06:00
Brian M. Carlson
fbdfc15b89 Bump version 2016-09-13 21:29:56 -05:00
Brian M. Carlson
cf28f9357f Bump version 2016-08-26 09:11:18 -05:00
Brian M. Carlson
f2221a4040 Bump version 2016-08-26 09:07:54 -05:00
Brian M. Carlson
afce7ed6e3 Bump version 2016-08-26 09:05:46 -05:00
brianc
9964208fe8 Bump version 2016-08-05 16:23:05 -05:00
brianc
8c42c4172b Bump version 2016-07-03 16:17:55 -07:00
Brian C
9ab7aff029 Update code to run on >=0.10.0 (#17)
* Replace const with var

* Update code to run on 0.10.x +

* Lint
2016-07-03 18:17:34 -05:00
brianc
22a76ddd1d Bump version 2016-06-26 22:05:46 -07:00
brianc
baa5800a70 Bump version 2016-06-24 09:53:46 -07:00
brianc
2d446d4953 Bump version 2016-06-24 11:36:36 -05:00
brianc
955d6ba797 Bump version 2016-06-23 00:21:16 -05:00
Brian C
7ef08fd861 Remove dependency on debug (#6)
Accept a `log: (message, other...) => { }` parameter as a config option, but by default use a no-op function instead of debug.
2016-06-22 23:29:09 -05:00
brianc
276b50d69f Bump version 2016-06-22 17:17:11 -05:00
ikokostya
cc20f8b747 Clone options in Pool constructor (fixes #4) (#5) 2016-06-22 16:34:17 -05:00
brianc
d09cf3b9c3 Bump version 2016-06-20 19:57:44 -05:00
brianc
e38cfe078c Bump version 2016-06-10 22:52:21 -05:00
brianc
cb21c2a2e7 Better compatibility with pg 2016-06-10 22:52:07 -05:00
brianc
ad73407aad Initial commit 2016-06-08 18:40:32 -05:00
brianc
c0d39055f2 Initial commit 2016-06-07 19:16:19 -05:00