Commit Graph

27 Commits

Author SHA1 Message Date
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Andy
c44ab23fb9 Prefer relative imports for packages that import theirselves (#20034) 2017-09-26 10:29:06 -07:00
Tanner Doshier
eef993565c [pg] Client.connect() returns void not a Client (#19918)
https://node-postgres.com/api/client#-code-client-connect-gt-promise-lt-void-gt-code-
2017-09-25 16:07:36 -07:00
André Wachter
6dbdffc8e7 [pg] Add Client.escapeIdentifier() and Client.escapeLiteral()
See:
https://github.com/brianc/node-postgres/blob/master/lib/client.js#L306
https://github.com/brianc/node-postgres/blob/master/lib/client.js#L324
2017-09-15 09:00:22 +02:00
André Wachter
9f88e46d7f [pg] Event "notice" is an alias of "error", not "notification"
e087305f31/lib/connection.js (L577-L582)
2017-09-11 13:55:52 +02:00
Nathan Shively-Sanders
acec1047ac Merge pull request #19477 from andrew8er/feature/reexport_module_as_native
[pg] Reexport the 'pg' module under an attribute 'native'
2017-09-06 10:51:28 -07:00
Leo Liang
402433d3b4 Fix error after merge master 2017-09-06 14:10:22 +08:00
Leo Liang
b81e4ed29f Merge branch 'master' into pg 2017-09-06 11:58:10 +08:00
André Wachter
e84cf3ef7b [pg]: Add a "Notification" type and pass it to the notification event listener
See: https://node-postgres.com/api/client#client-on-39-notification-39-notification-notification-gt-void-gt-void
2017-09-01 14:31:45 +02:00
Leo Liang
6e75e3644b Copy v6 types to its folder 2017-08-31 17:57:20 +08:00
André Wachter
84b7de8cef [pg] Reexport the 'pg' module under an attribute 'native'
Gives optional access to the native client if installed.
2017-08-31 11:05:07 +02:00
Leo Liang
adcf24f32d Add connectionString property to the config object 2017-08-30 10:55:55 +08:00
Leo Liang
3bc2634b09 Fix lint rule no-void-expression 2017-08-28 10:56:04 +08:00
Leo Liang
84a47dcbeb New test rule expects a github URL. 2017-08-28 10:51:30 +08:00
Leo Liang
a26b2c6e97 Remove properties which are no more available in pg 7.1 2017-08-28 10:51:30 +08:00
Leo Liang
854a2af8e5 Add properties totalCount, idleCount, waitingCount 2017-08-28 10:51:30 +08:00
Leo Liang
3653eef83f Update to pg 7.1 API 2017-08-28 10:51:30 +08:00
Leo Liang
59035dd08e Fix review comment 2017-08-28 10:51:30 +08:00
Leo Liang
582bba204d Update typing for pg 2017-08-28 10:51:30 +08:00
George MacKerron
ae0493cdc6 Updated ClientConfig to accept TlsOptions instead of just boolean (#18117) 2017-07-21 09:48:38 -07:00
Lei Zhao
2f8f2a6321 Pool.end() accepts an optional callback param 2017-07-04 13:39:18 -07:00
Andy Hanson
c15e214e5a bluebird: Make Thenable an alias to the builtin PromiseLike. 2017-06-16 09:02:18 -07:00
Aaron Petcoff
ee909ca497 duh forgot to add the word 'from' 2017-05-25 17:49:47 -04:00
Aaron Petcoff
7309ef4498 adds promise to PoolConfig in pg 2017-05-25 17:40:39 -04:00
John Maxwell
abef2dd282 [pg] Allow QueryConfig based queries rather than just string queries (#16293)
* feat: Allow QueryConfig based queries

* Harmonise pg.Client and pg.Pool query signatures
2017-05-04 13:08:11 -07:00
Charles Samborski
63a4b24ee1 [pg] Add the error parameter to Client.release
Client.release accepts an optional error parameter to destroy
the client instead of returning it to the pool in case of failure.
2017-04-18 11:43:44 +02:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00