2383 Commits

Author SHA1 Message Date
Brian M. Carlson
bc2f550402 Remove promise-interop from native query 2017-06-15 10:32:38 -05:00
Brian M. Carlson
55c3b3691c Use normalizeQueryConfig in native query 2017-06-15 10:32:38 -05:00
Brian M. Carlson
df36bece86 Restructure native file paths
Make file paths more closely match the non-native files, to make auto-complete file names slightly easier.
2017-06-15 10:32:38 -05:00
Brian M. Carlson
970d83aca4 Remove weird quasi-promise interface on JS query 2017-06-15 10:32:38 -05:00
Brian M. Carlson
d3ec938b82 Fix remainder of error tests 2017-06-15 10:32:38 -05:00
Brian M. Carlson
2add7e3407 Make almost all tests pass 2017-06-15 10:32:38 -05:00
Brian M. Carlson
e284cfc110 Make all integration tests pass 2017-06-15 10:32:38 -05:00
Brian M. Carlson
b8c2bebcac Fix more tests to use query instance 2017-06-15 10:32:38 -05:00
Brian M. Carlson
2f3d72a28c Start fixing integration tests 2017-06-15 10:32:38 -05:00
Brian M. Carlson
96b7fc38a6 Fix unit tests 2017-06-15 10:32:38 -05:00
Brian M. Carlson
6d98b0847c Actual promisification of client.query 2017-06-15 10:32:38 -05:00
Brian C
25a98f5099 Create LICENSE 2017-06-15 10:32:38 -05:00
Amila Welihinda
bc00f90c6a Added MIT License 2017-06-15 10:32:38 -05:00
Brian C
bbb759fba4 Create LICENSE 2017-06-12 10:14:31 -05:00
Amila Welihinda
5421e9dc0f Added MIT License 2017-06-12 10:14:31 -05:00
Brian M. Carlson
a829eee334 Merge origin/master 2017-06-09 16:24:39 -05:00
Brian M. Carlson
bbbd6e99f9 Use built-in util.deprecate 2017-06-09 15:41:27 -05:00
Brian M. Carlson
272858ca57 Remove lockfile because yarn in travis is blowing up the tests 2017-06-09 15:41:27 -05:00
Brian M. Carlson
31ee7590fd Deprecate pg.* singleton methods 2017-06-09 15:41:27 -05:00
Brian M. Carlson
58691218af Bump version v6.2.4 2017-06-09 12:33:55 -05:00
Brian Carlson
76c59a01f2 Emit error when backend unexpectedly disconnects 2017-06-09 12:27:47 -05:00
Sehrope Sarkuni
61921aae1a Add node 8.x to Travis-CI matrix 2017-06-09 09:00:04 -05:00
Sehrope Sarkuni
f69108869e Remove default and normalize Travis-CI matrix
Removes the default node 6 / PG 9.6 combination and adds it to the
Travis-CI matrix of combinations. That way all combinations are
defined in a single place.
2017-06-09 09:00:04 -05:00
Brian C
aeb0c759f5 Remove fallbacks for unsupported Node versions (#1304) (#1313)
* Add client connectionString tests (#1310)

* Remove redundant tests

* Add client connectionString test

Add test to ensure { connectionString } is respected as an argument to the client constructor

* Add test for connection string property

Also fixed some legacy require statements.

* Normalize native error properties

Map native error properties to the same property names we use for errors from the JS driver.

Fixes #972
Fixes #938
2017-06-08 21:53:47 -05:00
Brian M. Carlson
5061068b04 Fix test 2017-06-08 18:18:49 -05:00
Brian C
f2b87e02f1 Add client connectionString tests (#1310)
* Remove redundant tests

* Add client connectionString test

Add test to ensure { connectionString } is respected as an argument to the client constructor

* Add test for connection string property

Also fixed some legacy require statements.
2017-06-07 22:58:03 -05:00
Charmander
934ca3af16 Remove fallbacks for unsupported Node versions (#1304)
* Remove unsupported Node versions 0.10 and 0.12 from CI

* Replace deprecated Buffer constructor with .from/.alloc

* Remove Promise polyfill

* Make use of Object.assign

* Remove checks for versions of Node earlier than 4

* Remove Buffer#indexOf fallback for Node 0.10
2017-06-07 22:45:32 -05:00
brianc
959d89e043 Add test for connectionString property delegation 2017-06-07 22:35:55 -05:00
Brian C
f93385284d Update .travis.yml 2017-06-02 13:00:42 -05:00
Brian C
a51fe56bc1 Update .travis.yml
Drop node@0.10 and node@0.12 from the test matrix.
2017-06-02 09:40:11 -05:00
Amila Welihinda
52c96a4b2e Create LICENSE (#54)
* Create LICENSE

* Update LICENSE
2017-05-29 10:48:58 -05:00
Brian M. Carlson
3757ff7300 Bump version v6.2.3 2017-05-24 09:05:31 -05:00
Raul Ochoa
4cd56cc4f8 Make pool name consistent on missing config params (#1279)
* Going red: using a config object creates two pools when missing some params

It should only create a pool in a consistent way, even if some params
are not provided in the first place.

* Delay the pool name generation to make it consistent between calls

* Don't fallback to empty object as config is already defined
2017-05-24 09:04:50 -05:00
T.J. Schuck
e5f0e5d36a s/2016/2017/ (#1291) 2017-05-17 16:47:07 -05:00
Brian M. Carlson
6e462ffae6 Bump version 2017-05-15 23:16:55 -05:00
Brian C
bbc2b416ed Merge pull request #25 from sberan/cursor-result
Emit Query Events
2017-05-15 23:15:59 -05:00
Brian M. Carlson
c32316df77 Bump version v6.2.2 2017-05-15 12:21:32 -05:00
Sehrope Sarkuni
ee8193673c Libpq connection string escaping (#1285)
* Fix escaping of libpq connection string properties

Fix handlings of libpq connection properties to properly escape single
quotes and backslashes. Previously the values were surrounded in single
quotes which handled whitespace within the property value, but internal
single quotes and backslashes would cause invalid connection strings to
be generated.

* Update expected output in test to be quoted

Update the expect host output in the connection parameter test
to expect it to be surrounded by single quotes.

* Add test for configs with quotes and backslashes
2017-05-15 12:19:13 -05:00
Brian M. Carlson
4659d5d75f Bump version v6.2.1 2017-05-15 09:54:09 -05:00
Brian C
db5f4ae1ab Upgrade packet reader (#1287) 2017-05-15 09:36:18 -05:00
Sam Beran
4427e31661 fix travis build env 2017-05-09 10:13:57 -05:00
Sam Beran
2f480217cb fix: only dispatch error events if we have a listener 2017-05-09 10:13:57 -05:00
Sam Beran
acae15de53 Emit Query Events
This change adds events to the `Cursor` object
as per the [Query API](https://github.com/brianc/node-postgres/wiki/Query).
2017-05-09 10:13:57 -05:00
Brian Carlson
42af014483 Update travis.yml 2017-05-08 16:49:24 -05:00
Brian Carlson
4bf66e65de Bump version 2017-04-27 14:37:58 -05:00
Brian C
3cad54e061 Merge pull request #23 from sberan/cursor-result
Return result accumulator in callback
2017-04-27 14:37:49 -05:00
Sam Beran
557e5f879d Return result accumulator in callback
fixes issue: https://github.com/brianc/node-pg-cursor/issues/22
2017-04-27 14:26:11 -05:00
Brian Carlson
a3204168b7 Bump version 2017-04-27 11:42:19 -05:00
Brian C
24d85f5e17 Merge pull request #19 from crisvergara/master
Fix require for webpack compatibility
2017-04-27 11:41:53 -05:00
Attila Olah
54c2044416 feat: add basic typings
To make this app consumable by Typescript apps a typings file must be present.
2017-04-27 12:41:30 +02:00