Sehrope Sarkuni
3ead900349
Fix eslint and add back standard ( #1928 )
...
* lint: Enable standard rules again
* lint: Replace hasOwnProperty(...) call
* lint: Remove trailing spaces
* lint: Remove spaces within array brackets
* lint: Disable quote-props to silence linter
* lint: Skip linting on older node versions
2019-07-25 13:00:14 -05:00
Vitaly Tomilov
2c7be86104
minor text improvement in defaults ( #1893 )
2019-06-17 16:51:16 -05:00
Peter Boromissza
0993e4b61a
Added the missing connect_timeout and keepalives_idle config parameters ( #1847 )
...
* Added the missing connect_timeout and keepalives_idle config parameters
* Implementation and tests for keepAliveInitialDelayMillis and connectionTimeoutMillis [squashed 4]
2019-05-10 11:48:38 -05:00
André Cruz
eb076db5d4
Add configurable query timeout ( #1760 )
...
* Add read_timeout to connection settings
* Fix uncaught error issue
* Fix lint
* Fix "queryCallback is not a function"
* Added test and fixed error returning
* Added query timeout to native client
* Added test for timeout not reached
* Ensure error is the correct one
Correct test name
* Removed dubious check
* Added new test
* Improved test
2018-11-29 09:11:47 -06:00
Josh
ad36063ca5
support statement_timeout
2017-09-03 14:14:28 -05:00
Arnaud Benhamdine
3b3e52cdc2
Prefer max over poolSize : max is the only property documented in node-pg-pool
2017-09-03 14:01:34 -05:00
Arnaud Benhamdine
27492efc11
Remove properties no more used in node-pg-pool
2017-09-03 14:01:34 -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
0f1f8626cf
Add use strict to every file
2017-06-18 16:48:14 -05:00
T.J. Schuck
e5f0e5d36a
s/2016/2017/ ( #1291 )
2017-05-17 16:47:07 -05:00
Alexander Mochalin
f6c40b9331
parse int8[] ( #1152 )
...
* parse int8[]
* missing semicolon
* test
* test fixed
* test fixed
* test fixed. again.
2016-12-16 09:44:19 -06:00
Illirik Smirnov
522d62229b
Resolve merge conflict in PR #1041 ( #1065 )
...
* Add license comment
* Delete pool.js
2016-06-24 10:56:43 -05:00
Brian Dunavant
01e5d726da
Support for defaults.connectionString ( #910 )
2016-06-07 16:09:22 -05:00
twisha16
90600f2b47
Adding returnToHead in clientConfig param ( #1007 )
2016-06-07 16:05:55 -05:00
Seth Pollack
909c0f1872
add option to parse input Dates as UTC
2016-02-23 17:02:08 -08:00
Kevin Burke
fccaa1c598
defaults.js: fix typo in comment
2015-10-08 23:02:15 -07:00
Brian M. Carlson
876abe8730
Break type parsing into separate module
2014-03-15 15:36:27 -05:00
Hannes Hörl
7fd79a41c3
Add support for (fallback_)application_name
2014-01-05 18:08:58 +01:00
Brar Piening
d5e459227a
Modified defaults.js to use process.env.USERNAME instead of process.env.USER as default value for user and database on Windows platforms
2013-11-20 20:19:31 +01:00
brianc
bfdea752b2
Respect PGSSLMODE for setting SSL connection
2013-09-05 16:51:16 -05:00
Brian Carlson
e744d05df7
Add ability to opt-in to int8 parsing
...
Switching the result of all COUNT operations to a string is
a pretty nasty breaking change, and the majority of us aren't
going to be hitting numbers larger than Number.MAX_VALUE
2013-08-29 00:04:27 -05:00
Guillermo A. Sanchez
738c966112
Add default value for connection host.
...
Native binding connection tests will fail if the PGHOST environment variable is not set.
There already exists several defaul values for user, password and port. It would make sense to have a default host setting as well - localhost appears to be a reasonable default.
2013-06-29 14:46:45 -07:00
Dave
6fea79712c
Client encoding in defaults as well
2013-06-06 12:32:04 -07:00
Dave
d69070529c
Makes encoding an optional parameter
2013-06-06 12:06:52 -07:00
brianc
1d6541724e
remove deprecation warnings & deprecate lib
2013-03-17 14:51:57 -05:00
brianc
213518648b
ability to hide deprecation warnings
2013-03-07 10:01:14 -06:00
Philipp Borgers
4272f21685
remove trailing whitespace in lib/defaults.js
2013-01-24 22:03:02 +01:00
Philipp Borgers
3ba179a4d1
fix jshint errors for lib/defaults.js
2013-01-24 22:03:02 +01:00
Thomas Dimson
ae88278845
Add pass-through of log function to generic-pool. Bump generic-pool version.
2012-07-15 20:08:26 -07:00
brianc
21c6699d1b
add reapIntervalMillis to defaults and format the file
2012-02-02 23:27:52 -06:00
Alexander Sulfrian
f8962fd036
connection can be binary by default
...
if connection is created with config.binary = true, all queries get
executed with binary result unless explicit disabled with binary = false
2011-11-22 04:53:38 +01:00
brianc
c16c7f619d
configurable idle timeout on pooled clients
2011-08-11 21:52:29 -05:00
bmc
d5bd9c904a
defaults changed to be more in line with libpq defaults
2011-03-01 20:13:04 +00:00
Brian Carlson
de5438e6f5
started working on specifying defaults
2010-11-20 14:09:18 -06:00