pg 8.2.2 → 8.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +3 -0
- package/lib/connection-parameters.js +2 -0
- package/lib/defaults.js +2 -0
- package/package.json +3 -4
- package/LICENSE +0 -21
package/lib/client.js
CHANGED
|
@@ -391,6 +391,9 @@ Client.prototype.getStartupConf = function () {
|
|
|
391
391
|
if (params.idle_in_transaction_session_timeout) {
|
|
392
392
|
data.idle_in_transaction_session_timeout = String(parseInt(params.idle_in_transaction_session_timeout, 10))
|
|
393
393
|
}
|
|
394
|
+
if (params.options) {
|
|
395
|
+
data.options = params.options
|
|
396
|
+
}
|
|
394
397
|
|
|
395
398
|
return data
|
|
396
399
|
}
|
|
@@ -70,6 +70,7 @@ var ConnectionParameters = function (config) {
|
|
|
70
70
|
})
|
|
71
71
|
|
|
72
72
|
this.binary = val('binary', config)
|
|
73
|
+
this.options = val('options', config)
|
|
73
74
|
|
|
74
75
|
this.ssl = typeof config.ssl === 'undefined' ? readSSLConfigFromEnvironment() : config.ssl
|
|
75
76
|
|
|
@@ -126,6 +127,7 @@ ConnectionParameters.prototype.getLibpqConnectionString = function (cb) {
|
|
|
126
127
|
add(params, this, 'application_name')
|
|
127
128
|
add(params, this, 'fallback_application_name')
|
|
128
129
|
add(params, this, 'connect_timeout')
|
|
130
|
+
add(params, this, 'options')
|
|
129
131
|
|
|
130
132
|
var ssl = typeof this.ssl === 'object' ? this.ssl : this.ssl ? { sslmode: this.ssl } : {}
|
|
131
133
|
add(params, ssl, 'sslmode')
|
package/lib/defaults.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pg",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0",
|
|
4
4
|
"description": "PostgreSQL client - pure javascript & libpq with the same API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"database",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"buffer-writer": "2.0.0",
|
|
23
23
|
"packet-reader": "1.0.0",
|
|
24
|
-
"pg-connection-string": "^2.
|
|
24
|
+
"pg-connection-string": "^2.3.0",
|
|
25
25
|
"pg-pool": "^3.2.1",
|
|
26
26
|
"pg-protocol": "^1.2.5",
|
|
27
27
|
"pg-types": "^2.1.0",
|
|
@@ -45,6 +45,5 @@
|
|
|
45
45
|
"license": "MIT",
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">= 8.0.0"
|
|
48
|
-
}
|
|
49
|
-
"gitHead": "dec892ed015af8844f1aa6a9475832c88693b464"
|
|
48
|
+
}
|
|
50
49
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2010 - 2020 Brian Carlson
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|