@prisma/adapter-mssql 6.18.0-dev.2 → 6.18.0-dev.21

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 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",
@@ -427,11 +433,11 @@ function mapRow(row, columns) {
427
433
  function formatDateTime(date) {
428
434
  const pad = (n, z = 2) => String(n).padStart(z, "0");
429
435
  const ms = date.getUTCMilliseconds();
430
- return date.getUTCFullYear() + "-" + pad(date.getUTCMonth() + 1) + "-" + pad(date.getUTCDate()) + " " + pad(date.getUTCHours()) + ":" + pad(date.getUTCMinutes()) + ":" + pad(date.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
436
+ return pad(date.getUTCFullYear(), 4) + "-" + pad(date.getUTCMonth() + 1) + "-" + pad(date.getUTCDate()) + " " + pad(date.getUTCHours()) + ":" + pad(date.getUTCMinutes()) + ":" + pad(date.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
431
437
  }
432
438
  function formatDate(date) {
433
439
  const pad = (n, z = 2) => String(n).padStart(z, "0");
434
- return date.getUTCFullYear() + "-" + pad(date.getUTCMonth() + 1) + "-" + pad(date.getUTCDate());
440
+ return pad(date.getUTCFullYear(), 4) + "-" + pad(date.getUTCMonth() + 1) + "-" + pad(date.getUTCDate());
435
441
  }
436
442
  function formatTime(date) {
437
443
  const pad = (n, z = 2) => String(n).padStart(z, "0");
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",
@@ -397,11 +403,11 @@ function mapRow(row, columns) {
397
403
  function formatDateTime(date) {
398
404
  const pad = (n, z = 2) => String(n).padStart(z, "0");
399
405
  const ms = date.getUTCMilliseconds();
400
- return date.getUTCFullYear() + "-" + pad(date.getUTCMonth() + 1) + "-" + pad(date.getUTCDate()) + " " + pad(date.getUTCHours()) + ":" + pad(date.getUTCMinutes()) + ":" + pad(date.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
406
+ return pad(date.getUTCFullYear(), 4) + "-" + pad(date.getUTCMonth() + 1) + "-" + pad(date.getUTCDate()) + " " + pad(date.getUTCHours()) + ":" + pad(date.getUTCMinutes()) + ":" + pad(date.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
401
407
  }
402
408
  function formatDate(date) {
403
409
  const pad = (n, z = 2) => String(n).padStart(z, "0");
404
- return date.getUTCFullYear() + "-" + pad(date.getUTCMonth() + 1) + "-" + pad(date.getUTCDate());
410
+ return pad(date.getUTCFullYear(), 4) + "-" + pad(date.getUTCMonth() + 1) + "-" + pad(date.getUTCDate());
405
411
  }
406
412
  function formatTime(date) {
407
413
  const pad = (n, z = 2) => String(n).padStart(z, "0");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/adapter-mssql",
3
- "version": "6.18.0-dev.2",
3
+ "version": "6.18.0-dev.21",
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.2"
36
+ "@prisma/driver-adapter-utils": "6.18.0-dev.21"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/mssql": "9.1.8"