@prisma/adapter-mssql 6.18.0-dev.10 → 6.18.0-dev.12
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/dist/index.js +6 -0
- package/dist/index.mjs +6 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -126,6 +126,11 @@ function parseConnectionString(connectionString) {
|
|
|
126
126
|
config.options = config.options || {};
|
|
127
127
|
config.options.trustServerCertificate = trustServerCertificate.toLowerCase() === "true";
|
|
128
128
|
}
|
|
129
|
+
const multiSubnetFailover = firstKey(parameters, "multiSubnetFailover");
|
|
130
|
+
if (multiSubnetFailover !== null) {
|
|
131
|
+
config.options = config.options || {};
|
|
132
|
+
config.options.multiSubnetFailover = multiSubnetFailover.toLowerCase() === "true";
|
|
133
|
+
}
|
|
129
134
|
const connectionLimit = firstKey(parameters, "connectionLimit");
|
|
130
135
|
if (connectionLimit !== null) {
|
|
131
136
|
config.pool = config.pool || {};
|
|
@@ -275,6 +280,7 @@ var handledParameters = [
|
|
|
275
280
|
"initial catalog",
|
|
276
281
|
"isolationLevel",
|
|
277
282
|
"loginTimeout",
|
|
283
|
+
"multiSubnetFailover",
|
|
278
284
|
"password",
|
|
279
285
|
"poolTimeout",
|
|
280
286
|
"pwd",
|
package/dist/index.mjs
CHANGED
|
@@ -93,6 +93,11 @@ function parseConnectionString(connectionString) {
|
|
|
93
93
|
config.options = config.options || {};
|
|
94
94
|
config.options.trustServerCertificate = trustServerCertificate.toLowerCase() === "true";
|
|
95
95
|
}
|
|
96
|
+
const multiSubnetFailover = firstKey(parameters, "multiSubnetFailover");
|
|
97
|
+
if (multiSubnetFailover !== null) {
|
|
98
|
+
config.options = config.options || {};
|
|
99
|
+
config.options.multiSubnetFailover = multiSubnetFailover.toLowerCase() === "true";
|
|
100
|
+
}
|
|
96
101
|
const connectionLimit = firstKey(parameters, "connectionLimit");
|
|
97
102
|
if (connectionLimit !== null) {
|
|
98
103
|
config.pool = config.pool || {};
|
|
@@ -242,6 +247,7 @@ var handledParameters = [
|
|
|
242
247
|
"initial catalog",
|
|
243
248
|
"isolationLevel",
|
|
244
249
|
"loginTimeout",
|
|
250
|
+
"multiSubnetFailover",
|
|
245
251
|
"password",
|
|
246
252
|
"poolTimeout",
|
|
247
253
|
"pwd",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-mssql",
|
|
3
|
-
"version": "6.18.0-dev.
|
|
3
|
+
"version": "6.18.0-dev.12",
|
|
4
4
|
"description": "Prisma's driver adapter for \"mssql\"",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"mssql": "^11.0.1",
|
|
35
35
|
"async-mutex": "0.5.0",
|
|
36
|
-
"@prisma/driver-adapter-utils": "6.18.0-dev.
|
|
36
|
+
"@prisma/driver-adapter-utils": "6.18.0-dev.12"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/mssql": "9.1.8"
|