@prisma/internals 6.19.0-integration-next.22 → 6.19.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.
Files changed (116) hide show
  1. package/dist/{chunk-W6ZWX546.js → chunk-2GUGGLPK.js} +71 -38
  2. package/dist/chunk-3FP46GUV.js +471 -0
  3. package/dist/chunk-46ABODUM.js +186 -0
  4. package/dist/{chunk-GJSFP4V4.js → chunk-4CGPN5SR.js} +9 -3
  5. package/dist/{chunk-GL7OANR6.js → chunk-4JCVHBYR.js} +5 -5
  6. package/dist/{chunk-MEOOYUIZ.js → chunk-5AI4FIZ3.js} +10 -10
  7. package/dist/{chunk-EK3NXGEC.js → chunk-5IQ5L5E4.js} +71 -38
  8. package/dist/chunk-6TTRTZXU.js +37 -0
  9. package/dist/{chunk-UB2X7DGZ.js → chunk-75BIJ5PX.js} +9 -9
  10. package/dist/{chunk-MYLPCGTT.js → chunk-7QC5VORA.js} +5 -5
  11. package/dist/{chunk-6QTJ35DP.js → chunk-AP3F7M3T.js} +12 -12
  12. package/dist/{chunk-TGA7DC5A.js → chunk-AX5N26KG.js} +9 -14
  13. package/dist/{chunk-32LLAKF4.js → chunk-BVJP43JS.js} +784 -13
  14. package/dist/{chunk-G4R3KIUK.js → chunk-C7SAKLK2.js} +11 -11
  15. package/dist/{chunk-5B5U2HVK.js → chunk-CCLAMTCA.js} +8 -7
  16. package/dist/{chunk-IRWX4FCC.js → chunk-D4VDA2TZ.js} +6 -6
  17. package/dist/{chunk-SU3YFXA4.js → chunk-D7OTFXCP.js} +5 -5
  18. package/dist/chunk-DZYINYAA.js +68 -0
  19. package/dist/{chunk-HQE53CGA.js → chunk-E4H6V3Z4.js} +11 -11
  20. package/dist/{chunk-6FP5PMMX.js → chunk-E6MOBIU5.js} +5 -5
  21. package/dist/chunk-ERSH2BQA.js +58 -0
  22. package/dist/{chunk-OKVM3CW4.js → chunk-EYVG6XQS.js} +39 -3
  23. package/dist/{chunk-5MHUYAV3.js → chunk-F2OZV76L.js} +9 -9
  24. package/dist/{chunk-R3J2O23S.js → chunk-FCYHZHVW.js} +4 -4
  25. package/dist/{chunk-BKHAMV6G.js → chunk-FGU7IK4W.js} +9 -8
  26. package/dist/{chunk-STBFWZNS.js → chunk-FHZ5QJLR.js} +5 -5
  27. package/dist/{chunk-3CAPLXKF.js → chunk-FYZCPL2Z.js} +8 -5
  28. package/dist/{chunk-DOO45FN6.js → chunk-GMW36QQF.js} +7 -7
  29. package/dist/{chunk-BUQN4WLU.js → chunk-HFFWZTVM.js} +9 -7
  30. package/dist/{chunk-CGLLQXZE.js → chunk-HHG4DGHC.js} +12 -11
  31. package/dist/{chunk-5W3BSMTH.js → chunk-HO5HRHFZ.js} +6 -3
  32. package/dist/{chunk-3WXUQZS7.js → chunk-I6WLABB2.js} +5 -14
  33. package/dist/{chunk-FF7OLLBP.js → chunk-IDINCQMN.js} +784 -12
  34. package/dist/{chunk-2LOGW45F.js → chunk-JOIIWB3U.js} +33 -68
  35. package/dist/{chunk-2KREE2OX.js → chunk-JTS4UPHJ.js} +5 -5
  36. package/dist/{chunk-33FYCEWF.js → chunk-LFFCR67R.js} +20 -14
  37. package/dist/{chunk-AZFHZFLX.js → chunk-LU7NT333.js} +11 -11
  38. package/dist/{chunk-HBU4ZVCA.js → chunk-LV27YCGC.js} +11 -11
  39. package/dist/{chunk-KNNTV7IN.js → chunk-NVNI2SRU.js} +213 -687
  40. package/dist/{chunk-4YDN7W7B.js → chunk-OAT7ZJED.js} +20 -7
  41. package/dist/{chunk-25ON3V6C.js → chunk-PHFQSMQF.js} +5 -5
  42. package/dist/chunk-PZMRR772.js +41 -0
  43. package/dist/{chunk-KZ5SMOBR.js → chunk-QJ3QPUM5.js} +5 -5
  44. package/dist/{chunk-5I4ERIIY.js → chunk-RS2R7COT.js} +9 -3
  45. package/dist/{chunk-A547MKQQ.js → chunk-SOKSKSEX.js} +20 -14
  46. package/dist/chunk-T2PM5TKT.js +55 -0
  47. package/dist/{chunk-UCO5QBOS.js → chunk-TBR6SNKL.js} +5 -5
  48. package/dist/{chunk-MXAUURHG.js → chunk-TQFONRJP.js} +5 -5
  49. package/dist/{chunk-WSZXPLJQ.js → chunk-TZJROXB3.js} +4 -4
  50. package/dist/{chunk-IHC4ZVPQ.js → chunk-UHI6VYFX.js} +5 -5
  51. package/dist/{chunk-IU77SCOB.js → chunk-UQUWZJVN.js} +9 -9
  52. package/dist/{chunk-ARC7TW3L.js → chunk-WFNB7VRA.js} +14 -4
  53. package/dist/{chunk-TU4SG3WD.js → chunk-WYQJ4JWO.js} +12 -12
  54. package/dist/{chunk-MEBZK5AR.js → chunk-Y7XBA7JY.js} +5 -5
  55. package/dist/cli/checkUnsupportedDataProxy.js +62 -56
  56. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +62 -56
  57. package/dist/cli/getGeneratorSuccessMessage.js +3 -2
  58. package/dist/cli/getSchema.d.ts +15 -1
  59. package/dist/cli/getSchema.js +5 -4
  60. package/dist/cli/hashes.js +4 -4
  61. package/dist/cli/schemaContext.d.ts +3 -1
  62. package/dist/cli/schemaContext.js +62 -56
  63. package/dist/client/getClientEngineType.d.ts +7 -0
  64. package/dist/client/getClientEngineType.js +26 -0
  65. package/dist/dotenvExpand.d.ts +35 -0
  66. package/dist/dotenvExpand.js +25 -0
  67. package/dist/engine-commands/errorHelpers.js +4 -4
  68. package/dist/engine-commands/formatSchema.js +61 -55
  69. package/dist/engine-commands/getConfig.d.ts +1 -0
  70. package/dist/engine-commands/getConfig.js +13 -13
  71. package/dist/engine-commands/getDmmf.js +10 -10
  72. package/dist/engine-commands/getEngineVersion.js +9 -6
  73. package/dist/engine-commands/getEnginesInfo.d.ts +1 -0
  74. package/dist/engine-commands/getEnginesInfo.js +9 -7
  75. package/dist/engine-commands/index.js +73 -67
  76. package/dist/engine-commands/lintSchema.js +9 -9
  77. package/dist/engine-commands/mergeSchemas.js +10 -10
  78. package/dist/engine-commands/queryEngineCommons.js +6 -6
  79. package/dist/engine-commands/validate.js +10 -10
  80. package/dist/errorReporting.js +6 -6
  81. package/dist/get-generators/getGenerators.d.ts +1 -0
  82. package/dist/get-generators/getGenerators.js +64 -58
  83. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  84. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  85. package/dist/get-generators/utils/getBinaryPathsByVersion.js +5 -6
  86. package/dist/getPackedPackage.js +3 -4
  87. package/dist/index.d.ts +8 -1
  88. package/dist/index.js +115 -101
  89. package/dist/{multipart-parser-UV3WZSWW.js → multipart-parser-3AFJFP6K.js} +6 -6
  90. package/dist/resolveBinary.js +7 -8
  91. package/dist/schemaEngineCommands.js +8 -9
  92. package/dist/sendPanic.js +4 -4
  93. package/dist/utils/canPrompt.js +3 -3
  94. package/dist/utils/cloudflareD1.js +3 -3
  95. package/dist/utils/drawBox.js +2 -2
  96. package/dist/utils/fs-functional.js +10 -10
  97. package/dist/utils/fs-utils.js +8 -8
  98. package/dist/utils/getEnvPaths.d.ts +14 -0
  99. package/dist/utils/getEnvPaths.js +29 -0
  100. package/dist/utils/getVersionFromPackageJson.js +3 -3
  101. package/dist/utils/handleEngineLoadingErrors.d.ts +8 -0
  102. package/dist/utils/handleEngineLoadingErrors.js +27 -0
  103. package/dist/utils/handlePanic.js +8 -8
  104. package/dist/utils/link.js +2 -2
  105. package/dist/utils/load.d.ts +6 -0
  106. package/dist/utils/load.js +28 -0
  107. package/dist/utils/loadEnvFile.d.ts +10 -0
  108. package/dist/utils/loadEnvFile.js +30 -0
  109. package/dist/utils/missingDatasource.js +3 -3
  110. package/dist/utils/missingGeneratorMessage.js +5 -5
  111. package/dist/utils/serializeQueryEngineName.js +2 -2
  112. package/dist/utils/tryLoadEnvs.d.ts +25 -0
  113. package/dist/utils/tryLoadEnvs.js +30 -0
  114. package/dist/wasm.js +5 -5
  115. package/package.json +16 -15
  116. package/dist/chunk-DYV47NUW.js +0 -796
@@ -16,14 +16,14 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_2LOGW45F_exports = {};
20
- __export(chunk_2LOGW45F_exports, {
19
+ var chunk_JOIIWB3U_exports = {};
20
+ __export(chunk_JOIIWB3U_exports, {
21
21
  require_globby: () => require_globby,
22
22
  require_is_glob: () => require_is_glob,
23
23
  require_out: () => require_out4,
24
24
  require_slash: () => require_slash
25
25
  });
26
- module.exports = __toCommonJS(chunk_2LOGW45F_exports);
26
+ module.exports = __toCommonJS(chunk_JOIIWB3U_exports);
27
27
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
28
28
  var require_array = (0, import_chunk_4VNS5WPM.__commonJS)({
29
29
  "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
@@ -3964,7 +3964,7 @@ var require_out2 = (0, import_chunk_4VNS5WPM.__commonJS)({
3964
3964
  }
3965
3965
  });
3966
3966
  var require_reusify = (0, import_chunk_4VNS5WPM.__commonJS)({
3967
- "../../node_modules/.pnpm/reusify@1.1.0/node_modules/reusify/reusify.js"(exports, module2) {
3967
+ "../../node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.js"(exports, module2) {
3968
3968
  "use strict";
3969
3969
  function reusify(Constructor) {
3970
3970
  var head = new Constructor();
@@ -3993,17 +3993,17 @@ var require_reusify = (0, import_chunk_4VNS5WPM.__commonJS)({
3993
3993
  }
3994
3994
  });
3995
3995
  var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
3996
- "../../node_modules/.pnpm/fastq@1.19.1/node_modules/fastq/queue.js"(exports, module2) {
3996
+ "../../node_modules/.pnpm/fastq@1.15.0/node_modules/fastq/queue.js"(exports, module2) {
3997
3997
  "use strict";
3998
3998
  var reusify = require_reusify();
3999
- function fastqueue(context, worker, _concurrency) {
3999
+ function fastqueue(context, worker, concurrency) {
4000
4000
  if (typeof context === "function") {
4001
- _concurrency = worker;
4001
+ concurrency = worker;
4002
4002
  worker = context;
4003
4003
  context = null;
4004
4004
  }
4005
- if (!(_concurrency >= 1)) {
4006
- throw new Error("fastqueue concurrency must be equal to or greater than 1");
4005
+ if (concurrency < 1) {
4006
+ throw new Error("fastqueue concurrency must be greater than 1");
4007
4007
  }
4008
4008
  var cache = reusify(Task);
4009
4009
  var queueHead = null;
@@ -4016,20 +4016,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4016
4016
  saturated: noop,
4017
4017
  pause,
4018
4018
  paused: false,
4019
- get concurrency() {
4020
- return _concurrency;
4021
- },
4022
- set concurrency(value) {
4023
- if (!(value >= 1)) {
4024
- throw new Error("fastqueue concurrency must be equal to or greater than 1");
4025
- }
4026
- _concurrency = value;
4027
- if (self.paused) return;
4028
- for (; queueHead && _running < _concurrency; ) {
4029
- _running++;
4030
- release();
4031
- }
4032
- },
4019
+ concurrency,
4033
4020
  running,
4034
4021
  resume,
4035
4022
  idle,
@@ -4069,12 +4056,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4069
4056
  function resume() {
4070
4057
  if (!self.paused) return;
4071
4058
  self.paused = false;
4072
- if (queueHead === null) {
4073
- _running++;
4074
- release();
4075
- return;
4076
- }
4077
- for (; queueHead && _running < _concurrency; ) {
4059
+ for (var i = 0; i < self.concurrency; i++) {
4078
4060
  _running++;
4079
4061
  release();
4080
4062
  }
@@ -4089,7 +4071,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4089
4071
  current.value = value;
4090
4072
  current.callback = done || noop;
4091
4073
  current.errorHandler = errorHandler;
4092
- if (_running >= _concurrency || self.paused) {
4074
+ if (_running === self.concurrency || self.paused) {
4093
4075
  if (queueTail) {
4094
4076
  queueTail.next = current;
4095
4077
  queueTail = current;
@@ -4109,8 +4091,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4109
4091
  current.release = release;
4110
4092
  current.value = value;
4111
4093
  current.callback = done || noop;
4112
- current.errorHandler = errorHandler;
4113
- if (_running >= _concurrency || self.paused) {
4094
+ if (_running === self.concurrency || self.paused) {
4114
4095
  if (queueHead) {
4115
4096
  current.next = queueHead;
4116
4097
  queueHead = current;
@@ -4129,7 +4110,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4129
4110
  cache.release(holder);
4130
4111
  }
4131
4112
  var next = queueHead;
4132
- if (next && _running <= _concurrency) {
4113
+ if (next) {
4133
4114
  if (!self.paused) {
4134
4115
  if (queueTail === queueHead) {
4135
4116
  queueTail = null;
@@ -4185,9 +4166,9 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4185
4166
  self.release(self);
4186
4167
  };
4187
4168
  }
4188
- function queueAsPromised(context, worker, _concurrency) {
4169
+ function queueAsPromised(context, worker, concurrency) {
4189
4170
  if (typeof context === "function") {
4190
- _concurrency = worker;
4171
+ concurrency = worker;
4191
4172
  worker = context;
4192
4173
  context = null;
4193
4174
  }
@@ -4196,7 +4177,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4196
4177
  cb(null, res);
4197
4178
  }, cb);
4198
4179
  }
4199
- var queue = fastqueue(context, asyncWrapper, _concurrency);
4180
+ var queue = fastqueue(context, asyncWrapper, concurrency);
4200
4181
  var pushCb = queue.push;
4201
4182
  var unshiftCb = queue.unshift;
4202
4183
  queue.push = push;
@@ -4230,19 +4211,17 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4230
4211
  return p;
4231
4212
  }
4232
4213
  function drained() {
4233
- var p = new Promise(function(resolve) {
4234
- process.nextTick(function() {
4235
- if (queue.idle()) {
4236
- resolve();
4237
- } else {
4238
- var previousDrain = queue.drain;
4239
- queue.drain = function() {
4240
- if (typeof previousDrain === "function") previousDrain();
4241
- resolve();
4242
- queue.drain = previousDrain;
4243
- };
4244
- }
4214
+ if (queue.idle()) {
4215
+ return new Promise(function(resolve) {
4216
+ resolve();
4245
4217
  });
4218
+ }
4219
+ var previousDrain = queue.drain;
4220
+ var p = new Promise(function(resolve) {
4221
+ queue.drain = function() {
4222
+ previousDrain();
4223
+ resolve();
4224
+ };
4246
4225
  });
4247
4226
  return p;
4248
4227
  }
@@ -5482,7 +5461,7 @@ var require_dir_glob = (0, import_chunk_4VNS5WPM.__commonJS)({
5482
5461
  }
5483
5462
  });
5484
5463
  var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
5485
- "../../node_modules/.pnpm/ignore@5.3.2/node_modules/ignore/index.js"(exports, module2) {
5464
+ "../../node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.js"(exports, module2) {
5486
5465
  "use strict";
5487
5466
  function makeArray(subject) {
5488
5467
  return Array.isArray(subject) ? subject : [subject];
@@ -5514,32 +5493,18 @@ var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
5514
5493
  return slashes.slice(0, length - length % 2);
5515
5494
  };
5516
5495
  var REPLACERS = [
5517
- [
5518
- // remove BOM
5519
- // TODO:
5520
- // Other similar zero-width characters?
5521
- /^\uFEFF/,
5522
- () => EMPTY
5523
- ],
5524
5496
  // > Trailing spaces are ignored unless they are quoted with backslash ("\")
5525
5497
  [
5526
5498
  // (a\ ) -> (a )
5527
5499
  // (a ) -> (a)
5528
- // (a ) -> (a)
5529
5500
  // (a \ ) -> (a )
5530
- /((?:\\\\)*?)(\\?\s+)$/,
5531
- (_, m1, m2) => m1 + (m2.indexOf("\\") === 0 ? SPACE : EMPTY)
5501
+ /\\?\s+$/,
5502
+ (match) => match.indexOf("\\") === 0 ? SPACE : EMPTY
5532
5503
  ],
5533
5504
  // replace (\ ) with ' '
5534
- // (\ ) -> ' '
5535
- // (\\ ) -> '\\ '
5536
- // (\\\ ) -> '\\ '
5537
5505
  [
5538
- /(\\+?)\s/g,
5539
- (_, m1) => {
5540
- const { length } = m1;
5541
- return m1.slice(0, length - length % 2) + SPACE;
5542
- }
5506
+ /\\\s/g,
5507
+ () => SPACE
5543
5508
  ],
5544
5509
  // Escape metacharacters
5545
5510
  // which is written down by users but means special for regular expressions.
@@ -5674,7 +5639,7 @@ var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
5674
5639
  let source = regexCache[pattern];
5675
5640
  if (!source) {
5676
5641
  source = REPLACERS.reduce(
5677
- (prev, [matcher, replacer]) => prev.replace(matcher, replacer.bind(pattern)),
5642
+ (prev, current) => prev.replace(current[0], current[1].bind(pattern)),
5678
5643
  pattern
5679
5644
  );
5680
5645
  regexCache[pattern] = source;
@@ -16,15 +16,15 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_2KREE2OX_exports = {};
20
- __export(chunk_2KREE2OX_exports, {
19
+ var chunk_JTS4UPHJ_exports = {};
20
+ __export(chunk_JTS4UPHJ_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_2KREE2OX_exports);
24
- var import_chunk_KZ5SMOBR = require("./chunk-KZ5SMOBR.js");
23
+ module.exports = __toCommonJS(chunk_JTS4UPHJ_exports);
24
+ var import_chunk_QJ3QPUM5 = require("./chunk-QJ3QPUM5.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_KZ5SMOBR.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_QJ3QPUM5.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -26,20 +26,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_33FYCEWF_exports = {};
30
- __export(chunk_33FYCEWF_exports, {
29
+ var chunk_LFFCR67R_exports = {};
30
+ __export(chunk_LFFCR67R_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig,
33
33
  getDirectUrl: () => getDirectUrl,
34
34
  getEffectiveUrl: () => getEffectiveUrl,
35
35
  resolveUrl: () => resolveUrl
36
36
  });
37
- module.exports = __toCommonJS(chunk_33FYCEWF_exports);
38
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
39
- var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
+ module.exports = __toCommonJS(chunk_LFFCR67R_exports);
38
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
40
39
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
41
- var import_chunk_2KREE2OX = require("./chunk-2KREE2OX.js");
42
- var import_chunk_MEBZK5AR = require("./chunk-MEBZK5AR.js");
40
+ var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
41
+ var import_chunk_D7OTFXCP = require("./chunk-D7OTFXCP.js");
42
+ var import_chunk_Y7XBA7JY = require("./chunk-Y7XBA7JY.js");
43
43
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
44
44
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
45
45
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -64,7 +64,7 @@ ${detailsHeader} ${message}`;
64
64
  }).exhaustive();
65
65
  const errorMessageWithContext = `${constructedErrorMessage}
66
66
  [Context: getConfig]`;
67
- super((0, import_chunk_2KREE2OX.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_D7OTFXCP.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
68
  this.name = "GetConfigError";
69
69
  }
70
70
  };
@@ -82,17 +82,23 @@ function resolveUrl(envValue) {
82
82
  return urlFromValue ?? urlEnvVarValue;
83
83
  }
84
84
  async function getConfig(options) {
85
- const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getConfigWasm");
85
+ const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getConfigWasm");
86
86
  debug(`Using getConfig Wasm`);
87
87
  const configEither = (0, import_function.pipe)(
88
88
  (0, import_chunk_5DBOS77Y.tryCatch)(
89
89
  () => {
90
90
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
91
91
  debug("Triggering a Rust panic...");
92
- import_chunk_MEBZK5AR.prismaSchemaWasm.debug_panic();
92
+ import_chunk_Y7XBA7JY.prismaSchemaWasm.debug_panic();
93
93
  }
94
- const params = JSON.stringify({ prismaSchema: options.datamodel });
95
- return import_chunk_MEBZK5AR.prismaSchemaWasm.get_config(params);
94
+ const params = JSON.stringify({
95
+ prismaSchema: options.datamodel,
96
+ datasourceOverrides: {},
97
+ ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
98
+ env: process.env
99
+ });
100
+ const data = import_chunk_Y7XBA7JY.prismaSchemaWasm.get_config(params);
101
+ return data;
96
102
  },
97
103
  (e) => ({
98
104
  type: "wasm-error",
@@ -150,12 +156,12 @@ async function getConfig(options) {
150
156
  return panic;
151
157
  }
152
158
  const errorOutput = e.error.message;
153
- return new GetConfigError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
159
+ return new GetConfigError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
154
160
  }).with({ type: "validation-error" }, (e) => {
155
161
  return new GetConfigError({
156
162
  _tag: "parsed",
157
163
  errorCode: SCHEMA_VALIDATION_ERROR_CODE,
158
- reason: (0, import_chunk_WSZXPLJQ.createSchemaValidationError)(e.reason),
164
+ reason: (0, import_chunk_TZJROXB3.createSchemaValidationError)(e.reason),
159
165
  message: formatErrors(e.error)
160
166
  });
161
167
  }).otherwise((e) => {
@@ -26,17 +26,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_AZFHZFLX_exports = {};
30
- __export(chunk_AZFHZFLX_exports, {
29
+ var chunk_LU7NT333_exports = {};
30
+ __export(chunk_LU7NT333_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_AZFHZFLX_exports);
35
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
- var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
34
+ module.exports = __toCommonJS(chunk_LU7NT333_exports);
35
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
37
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_SU3YFXA4 = require("./chunk-SU3YFXA4.js");
39
- var import_chunk_STBFWZNS = require("./chunk-STBFWZNS.js");
37
+ var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
+ var import_chunk_D7OTFXCP = require("./chunk-D7OTFXCP.js");
39
+ var import_chunk_Y7XBA7JY = require("./chunk-Y7XBA7JY.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -59,12 +59,12 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: mergeSchemas]`;
62
- super((0, import_chunk_SU3YFXA4.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_D7OTFXCP.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "MergeSchemasError";
64
64
  }
65
65
  };
66
66
  function mergeSchemas(options) {
67
- const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "mergeSchemasWasm");
67
+ const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "mergeSchemasWasm");
68
68
  debug(`Using mergeSchemas Wasm`);
69
69
  const mergeSchemasEither = (0, import_function.pipe)(
70
70
  (0, import_chunk_5DBOS77Y.tryCatch)(
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
72
72
  const params = JSON.stringify({
73
73
  schema: options.schemas
74
74
  });
75
- return import_chunk_STBFWZNS.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_Y7XBA7JY.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -104,7 +104,7 @@ function mergeSchemas(options) {
104
104
  return panic;
105
105
  }
106
106
  const errorOutput = e.error.message;
107
- return new MergeSchemasError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
107
+ return new MergeSchemasError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
108
108
  }).exhaustive();
109
109
  throw error;
110
110
  }
@@ -26,16 +26,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_HBU4ZVCA_exports = {};
30
- __export(chunk_HBU4ZVCA_exports, {
29
+ var chunk_LV27YCGC_exports = {};
30
+ __export(chunk_LV27YCGC_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_HBU4ZVCA_exports);
35
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
34
+ module.exports = __toCommonJS(chunk_LV27YCGC_exports);
35
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_2KREE2OX = require("./chunk-2KREE2OX.js");
38
- var import_chunk_MEBZK5AR = require("./chunk-MEBZK5AR.js");
37
+ var import_chunk_JTS4UPHJ = require("./chunk-JTS4UPHJ.js");
38
+ var import_chunk_FHZ5QJLR = require("./chunk-FHZ5QJLR.js");
39
39
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
41
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -58,25 +58,25 @@ ${detailsHeader} ${message}`;
58
58
  }).exhaustive();
59
59
  const errorMessageWithContext = `${constructedErrorMessage}
60
60
  [Context: getDmmf]`;
61
- super((0, import_chunk_2KREE2OX.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_JTS4UPHJ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
62
  this.name = "GetDmmfError";
63
63
  }
64
64
  };
65
65
  async function getDMMF(options) {
66
- const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getDmmfWasm");
66
+ const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getDmmfWasm");
67
67
  debug(`Using getDmmf Wasm`);
68
68
  const dmmfPipeline = (0, import_function.pipe)(
69
69
  (0, import_chunk_5DBOS77Y.tryCatch)(
70
70
  () => {
71
71
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
72
72
  debug("Triggering a Rust panic...");
73
- import_chunk_MEBZK5AR.prismaSchemaWasm.debug_panic();
73
+ import_chunk_FHZ5QJLR.prismaSchemaWasm.debug_panic();
74
74
  }
75
75
  const params = JSON.stringify({
76
76
  prismaSchema: options.datamodel,
77
77
  noColor: Boolean(process.env.NO_COLOR)
78
78
  });
79
- const data = import_chunk_MEBZK5AR.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_FHZ5QJLR.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -124,7 +124,7 @@ async function getDMMF(options) {
124
124
  return panic;
125
125
  }
126
126
  const errorOutput = e.error.message;
127
- return new GetDmmfError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
127
+ return new GetDmmfError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
128
128
  }).with({ type: "parse-json" }, (e) => {
129
129
  debugErrorType(e);
130
130
  return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });