@prisma/internals 6.19.0-integration-feat-remove-library-engine.2 → 6.19.0-integration-next.14

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 (91) hide show
  1. package/dist/{chunk-D7L3VT6R.js → chunk-247ICNDG.js} +8 -8
  2. package/dist/{chunk-NPMHIQNM.js → chunk-36YXR6IU.js} +8 -8
  3. package/dist/{chunk-MEOOYUIZ.js → chunk-5AI4FIZ3.js} +10 -10
  4. package/dist/{chunk-5MHUYAV3.js → chunk-5XFNC2RY.js} +9 -9
  5. package/dist/chunk-6TTRTZXU.js +37 -0
  6. package/dist/{chunk-UB2X7DGZ.js → chunk-75BIJ5PX.js} +9 -9
  7. package/dist/{chunk-H6PPJ5PX.js → chunk-7QC5VORA.js} +7 -7
  8. package/dist/{chunk-OENCCIMK.js → chunk-AGCXD33Q.js} +7 -7
  9. package/dist/{chunk-N2IUVVYJ.js → chunk-AVHPQM6S.js} +47 -32
  10. package/dist/{chunk-33K2EQQZ.js → chunk-AX5N26KG.js} +10 -10
  11. package/dist/{chunk-5I4ERIIY.js → chunk-B22EOFPW.js} +6 -3
  12. package/dist/{chunk-5CBDEFHE.js → chunk-B4WDAX32.js} +5 -5
  13. package/dist/{chunk-Z2IPE4NA.js → chunk-BJUIZZOW.js} +47 -32
  14. package/dist/{chunk-32LLAKF4.js → chunk-BVJP43JS.js} +784 -13
  15. package/dist/{chunk-AOJ2N25Z.js → chunk-CAYOFOK7.js} +8 -8
  16. package/dist/{chunk-IRWX4FCC.js → chunk-D4VDA2TZ.js} +6 -6
  17. package/dist/chunk-DZYINYAA.js +68 -0
  18. package/dist/{chunk-PTRXLDT7.js → chunk-EGJS32NP.js} +8 -8
  19. package/dist/{chunk-22HIO2UL.js → chunk-FC6CQUSK.js} +7 -7
  20. package/dist/{chunk-R3J2O23S.js → chunk-FCYHZHVW.js} +4 -4
  21. package/dist/chunk-FUYRCYVL.js +53 -0
  22. package/dist/{chunk-HNRMSI3R.js → chunk-FYZCPL2Z.js} +8 -5
  23. package/dist/{chunk-7NFX7KFI.js → chunk-GFAWJ2TV.js} +5 -5
  24. package/dist/{chunk-BUQN4WLU.js → chunk-GSH4BXBI.js} +6 -6
  25. package/dist/{chunk-UMB3Y33W.js → chunk-HD2CUQO5.js} +7 -7
  26. package/dist/{chunk-CGLLQXZE.js → chunk-HHG4DGHC.js} +12 -11
  27. package/dist/{chunk-ZVTQSH5K.js → chunk-HQAD5FY2.js} +5 -5
  28. package/dist/{chunk-RXERQWBD.js → chunk-HZ6U2UGL.js} +8 -8
  29. package/dist/{chunk-3WXUQZS7.js → chunk-I6WLABB2.js} +5 -14
  30. package/dist/{chunk-FF7OLLBP.js → chunk-IDINCQMN.js} +784 -12
  31. package/dist/{chunk-NPSVUZBN.js → chunk-IEJB3DQI.js} +5 -5
  32. package/dist/{chunk-2LOGW45F.js → chunk-JOIIWB3U.js} +33 -68
  33. package/dist/{chunk-IU77SCOB.js → chunk-KIFFN3IT.js} +9 -9
  34. package/dist/{chunk-EBJBIVXN.js → chunk-MURRA56K.js} +5 -5
  35. package/dist/{chunk-KNNTV7IN.js → chunk-NVNI2SRU.js} +213 -687
  36. package/dist/{chunk-BUB5LU5N.js → chunk-O6VZIATS.js} +5 -5
  37. package/dist/{chunk-BZV6PVWV.js → chunk-ROEAPAY4.js} +8 -8
  38. package/dist/{chunk-MUZJUPDX.js → chunk-S553BGWR.js} +4 -4
  39. package/dist/{chunk-H5STSTVK.js → chunk-SRZLJFU4.js} +16 -7
  40. package/dist/{chunk-VNIE2AZB.js → chunk-TQCLUNM2.js} +4 -4
  41. package/dist/{chunk-MXAUURHG.js → chunk-TQFONRJP.js} +5 -5
  42. package/dist/{chunk-GDTMDZJA.js → chunk-UH3WB3VN.js} +5 -5
  43. package/dist/{chunk-WJKBKH3Y.js → chunk-UHI6VYFX.js} +5 -5
  44. package/dist/{chunk-NNYJV66S.js → chunk-VIEJEAGW.js} +5 -5
  45. package/dist/{chunk-GJSFP4V4.js → chunk-VRGMXDRD.js} +6 -3
  46. package/dist/{chunk-NVSVTFPX.js → chunk-XTWFEQXH.js} +5 -5
  47. package/dist/cli/checkUnsupportedDataProxy.js +49 -47
  48. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +49 -47
  49. package/dist/cli/schemaContext.js +49 -47
  50. package/dist/client/getClientEngineType.d.ts +6 -0
  51. package/dist/client/getClientEngineType.js +26 -0
  52. package/dist/engine-commands/errorHelpers.js +4 -4
  53. package/dist/engine-commands/formatSchema.js +48 -46
  54. package/dist/engine-commands/getConfig.js +10 -10
  55. package/dist/engine-commands/getDmmf.js +7 -7
  56. package/dist/engine-commands/getEngineVersion.js +9 -6
  57. package/dist/engine-commands/getEnginesInfo.js +9 -7
  58. package/dist/engine-commands/index.js +60 -58
  59. package/dist/engine-commands/lintSchema.js +8 -8
  60. package/dist/engine-commands/mergeSchemas.js +7 -7
  61. package/dist/engine-commands/validate.js +7 -7
  62. package/dist/errorReporting.js +6 -6
  63. package/dist/get-generators/getGenerators.js +51 -49
  64. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  65. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  66. package/dist/get-generators/utils/getBinaryPathsByVersion.js +5 -6
  67. package/dist/getPackedPackage.js +3 -4
  68. package/dist/highlight/highlight.js +5 -5
  69. package/dist/index.d.ts +4 -1
  70. package/dist/index.js +95 -88
  71. package/dist/{multipart-parser-UV3WZSWW.js → multipart-parser-3AFJFP6K.js} +6 -6
  72. package/dist/resolveBinary.js +7 -8
  73. package/dist/schemaEngineCommands.js +8 -9
  74. package/dist/sendPanic.js +4 -4
  75. package/dist/utils/canPrompt.js +3 -3
  76. package/dist/utils/cloudflareD1.js +3 -3
  77. package/dist/utils/drawBox.js +2 -2
  78. package/dist/utils/fs-functional.js +10 -10
  79. package/dist/utils/fs-utils.js +8 -8
  80. package/dist/utils/getVersionFromPackageJson.js +3 -3
  81. package/dist/utils/handleEngineLoadingErrors.d.ts +8 -0
  82. package/dist/utils/handleEngineLoadingErrors.js +27 -0
  83. package/dist/utils/handlePanic.js +8 -8
  84. package/dist/utils/link.js +2 -2
  85. package/dist/utils/load.d.ts +6 -0
  86. package/dist/utils/load.js +28 -0
  87. package/dist/utils/missingDatasource.js +5 -5
  88. package/dist/utils/missingGeneratorMessage.js +7 -7
  89. package/dist/wasm.js +5 -5
  90. package/package.json +12 -12
  91. package/dist/chunk-DYV47NUW.js +0 -796
@@ -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_D7L3VT6R_exports = {};
30
- __export(chunk_D7L3VT6R_exports, {
29
+ var chunk_247ICNDG_exports = {};
30
+ __export(chunk_247ICNDG_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_D7L3VT6R_exports);
37
+ module.exports = __toCommonJS(chunk_247ICNDG_exports);
38
38
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
39
39
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
40
40
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
41
- var import_chunk_EBJBIVXN = require("./chunk-EBJBIVXN.js");
42
- var import_chunk_ZVTQSH5K = require("./chunk-ZVTQSH5K.js");
41
+ var import_chunk_B4WDAX32 = require("./chunk-B4WDAX32.js");
42
+ var import_chunk_GFAWJ2TV = require("./chunk-GFAWJ2TV.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_EBJBIVXN.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_B4WDAX32.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
68
  this.name = "GetConfigError";
69
69
  }
70
70
  };
@@ -89,7 +89,7 @@ async function getConfig(options) {
89
89
  () => {
90
90
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
91
91
  debug("Triggering a Rust panic...");
92
- import_chunk_ZVTQSH5K.prismaSchemaWasm.debug_panic();
92
+ import_chunk_GFAWJ2TV.prismaSchemaWasm.debug_panic();
93
93
  }
94
94
  const params = JSON.stringify({
95
95
  prismaSchema: options.datamodel,
@@ -97,7 +97,7 @@ async function getConfig(options) {
97
97
  ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
98
98
  env: process.env
99
99
  });
100
- const data = import_chunk_ZVTQSH5K.prismaSchemaWasm.get_config(params);
100
+ const data = import_chunk_GFAWJ2TV.prismaSchemaWasm.get_config(params);
101
101
  return data;
102
102
  },
103
103
  (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_NPMHIQNM_exports = {};
30
- __export(chunk_NPMHIQNM_exports, {
29
+ var chunk_36YXR6IU_exports = {};
30
+ __export(chunk_36YXR6IU_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_NPMHIQNM_exports);
34
+ module.exports = __toCommonJS(chunk_36YXR6IU_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
37
37
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
- var import_chunk_5CBDEFHE = require("./chunk-5CBDEFHE.js");
39
- var import_chunk_7NFX7KFI = require("./chunk-7NFX7KFI.js");
38
+ var import_chunk_B4WDAX32 = require("./chunk-B4WDAX32.js");
39
+ var import_chunk_GFAWJ2TV = require("./chunk-GFAWJ2TV.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,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: validate]`;
62
- super((0, import_chunk_5CBDEFHE.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_B4WDAX32.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "ValidateError";
64
64
  }
65
65
  };
@@ -71,13 +71,13 @@ function validate(options) {
71
71
  () => {
72
72
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
73
73
  debug("Triggering a Rust panic...");
74
- import_chunk_7NFX7KFI.prismaSchemaWasm.debug_panic();
74
+ import_chunk_GFAWJ2TV.prismaSchemaWasm.debug_panic();
75
75
  }
76
76
  const params = JSON.stringify({
77
77
  prismaSchema: options.schemas,
78
78
  noColor: Boolean(process.env.NO_COLOR)
79
79
  });
80
- import_chunk_7NFX7KFI.prismaSchemaWasm.validate(params);
80
+ import_chunk_GFAWJ2TV.prismaSchemaWasm.validate(params);
81
81
  },
82
82
  (e) => ({
83
83
  type: "wasm-error",
@@ -26,15 +26,15 @@ 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_MEOOYUIZ_exports = {};
30
- __export(chunk_MEOOYUIZ_exports, {
29
+ var chunk_5AI4FIZ3_exports = {};
30
+ __export(chunk_5AI4FIZ3_exports, {
31
31
  ErrorKind: () => ErrorKind,
32
32
  createErrorReport: () => createErrorReport,
33
33
  makeErrorReportCompleted: () => makeErrorReportCompleted,
34
34
  uploadZip: () => uploadZip
35
35
  });
36
- module.exports = __toCommonJS(chunk_MEOOYUIZ_exports);
37
- var import_chunk_KNNTV7IN = require("./chunk-KNNTV7IN.js");
36
+ module.exports = __toCommonJS(chunk_5AI4FIZ3_exports);
37
+ var import_chunk_NVNI2SRU = require("./chunk-NVNI2SRU.js");
38
38
  var import_fetch_engine = require("@prisma/fetch-engine");
39
39
  var import_node_http = __toESM(require("node:http"));
40
40
  var import_node_https = __toESM(require("node:https"));
@@ -151,8 +151,8 @@ var Body = class {
151
151
  } else if (ArrayBuffer.isView(body)) {
152
152
  body = import_node_buffer2.Buffer.from(body.buffer, body.byteOffset, body.byteLength);
153
153
  } else if (body instanceof import_node_stream2.default) {
154
- } else if (body instanceof import_chunk_KNNTV7IN.FormData) {
155
- body = (0, import_chunk_KNNTV7IN.formDataToBlob)(body);
154
+ } else if (body instanceof import_chunk_NVNI2SRU.FormData) {
155
+ body = (0, import_chunk_NVNI2SRU.formDataToBlob)(body);
156
156
  boundary = body.type.split("=")[1];
157
157
  } else {
158
158
  body = import_node_buffer2.Buffer.from(String(body));
@@ -196,14 +196,14 @@ var Body = class {
196
196
  async formData() {
197
197
  const ct = this.headers.get("content-type");
198
198
  if (ct.startsWith("application/x-www-form-urlencoded")) {
199
- const formData = new import_chunk_KNNTV7IN.FormData();
199
+ const formData = new import_chunk_NVNI2SRU.FormData();
200
200
  const parameters = new URLSearchParams(await this.text());
201
201
  for (const [name, value] of parameters) {
202
202
  formData.append(name, value);
203
203
  }
204
204
  return formData;
205
205
  }
206
- const { toFormData } = await import("./multipart-parser-UV3WZSWW.js");
206
+ const { toFormData } = await import("./multipart-parser-3AFJFP6K.js");
207
207
  return toFormData(this.body, ct);
208
208
  }
209
209
  /**
@@ -214,7 +214,7 @@ var Body = class {
214
214
  async blob() {
215
215
  const ct = this.headers && this.headers.get("content-type") || this[INTERNALS].body && this[INTERNALS].body.type || "";
216
216
  const buf = await this.arrayBuffer();
217
- return new import_chunk_KNNTV7IN.fetch_blob_default([buf], {
217
+ return new import_chunk_NVNI2SRU.fetch_blob_default([buf], {
218
218
  type: ct
219
219
  });
220
220
  }
@@ -342,7 +342,7 @@ var extractContentType = (body, request2) => {
342
342
  if (import_node_buffer2.Buffer.isBuffer(body) || import_node_util.types.isAnyArrayBuffer(body) || ArrayBuffer.isView(body)) {
343
343
  return null;
344
344
  }
345
- if (body instanceof import_chunk_KNNTV7IN.FormData) {
345
+ if (body instanceof import_chunk_NVNI2SRU.FormData) {
346
346
  return `multipart/form-data; boundary=${request2[INTERNALS].boundary}`;
347
347
  }
348
348
  if (body && typeof body.getBoundary === "function") {
@@ -26,21 +26,21 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_5MHUYAV3_exports = {};
30
- __export(chunk_5MHUYAV3_exports, {
29
+ var chunk_5XFNC2RY_exports = {};
30
+ __export(chunk_5XFNC2RY_exports, {
31
31
  getBinaryPathsByVersion: () => getBinaryPathsByVersion
32
32
  });
33
- module.exports = __toCommonJS(chunk_5MHUYAV3_exports);
34
- var import_chunk_5I4ERIIY = require("./chunk-5I4ERIIY.js");
35
- var import_chunk_GJSFP4V4 = require("./chunk-GJSFP4V4.js");
33
+ module.exports = __toCommonJS(chunk_5XFNC2RY_exports);
34
+ var import_chunk_B22EOFPW = require("./chunk-B22EOFPW.js");
35
+ var import_chunk_VRGMXDRD = require("./chunk-VRGMXDRD.js");
36
36
  var import_chunk_2SDPW6AX = require("./chunk-2SDPW6AX.js");
37
37
  var import_chunk_7B5PXS6N = require("./chunk-7B5PXS6N.js");
38
- var import_chunk_FF7OLLBP = require("./chunk-FF7OLLBP.js");
38
+ var import_chunk_IDINCQMN = require("./chunk-IDINCQMN.js");
39
39
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
40
40
  var import_engines = require("@prisma/engines");
41
41
  var import_fetch_engine = require("@prisma/fetch-engine");
42
42
  var import_path = __toESM2(require("path"));
43
- var import_fs_extra = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_FF7OLLBP.require_lib)());
43
+ var import_fs_extra = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_IDINCQMN.require_lib)());
44
44
  async function getBinaryPathsByVersion({
45
45
  neededVersions,
46
46
  detectBinaryTarget,
@@ -91,7 +91,7 @@ async function getBinaryPathsByVersion({
91
91
  }
92
92
  const binariesConfig = neededVersion.engines.reduce((acc, curr) => {
93
93
  if (!binaryPathsOverride?.[curr]) {
94
- acc[(0, import_chunk_GJSFP4V4.engineTypeToBinaryType)(curr)] = binaryTargetBaseDir;
94
+ acc[(0, import_chunk_VRGMXDRD.engineTypeToBinaryType)(curr)] = binaryTargetBaseDir;
95
95
  }
96
96
  return acc;
97
97
  }, /* @__PURE__ */ Object.create(null));
@@ -107,7 +107,7 @@ async function getBinaryPathsByVersion({
107
107
  skipDownload
108
108
  };
109
109
  const binaryPathsWithEngineType = await (0, import_fetch_engine.download)(downloadParams);
110
- const binaryPaths = (0, import_chunk_7B5PXS6N.mapKeys)(binaryPathsWithEngineType, import_chunk_5I4ERIIY.binaryTypeToEngineType);
110
+ const binaryPaths = (0, import_chunk_7B5PXS6N.mapKeys)(binaryPathsWithEngineType, import_chunk_B22EOFPW.binaryTypeToEngineType);
111
111
  binaryPathsByVersion[currentVersion] = binaryPaths;
112
112
  }
113
113
  if (binaryPathsOverride) {
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_6TTRTZXU_exports = {};
20
+ __export(chunk_6TTRTZXU_exports, {
21
+ loadLibrary: () => loadLibrary
22
+ });
23
+ module.exports = __toCommonJS(chunk_6TTRTZXU_exports);
24
+ var import_chunk_DZYINYAA = require("./chunk-DZYINYAA.js");
25
+ var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
26
+ function loadLibrary(id, platformInfo) {
27
+ try {
28
+ return (0, import_chunk_4VNS5WPM.__require)(id);
29
+ } catch (e) {
30
+ const errorMessage = (0, import_chunk_DZYINYAA.handleLibraryLoadingErrors)({
31
+ e,
32
+ platformInfo,
33
+ id
34
+ });
35
+ throw new Error(errorMessage);
36
+ }
37
+ }
@@ -26,8 +26,8 @@ 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_UB2X7DGZ_exports = {};
30
- __export(chunk_UB2X7DGZ_exports, {
29
+ var chunk_75BIJ5PX_exports = {};
30
+ __export(chunk_75BIJ5PX_exports, {
31
31
  createDirIfNotExists: () => createDirIfNotExists2,
32
32
  fs_functional_exports: () => fs_functional_exports,
33
33
  getFilesInDir: () => getFilesInDir2,
@@ -37,8 +37,8 @@ __export(chunk_UB2X7DGZ_exports, {
37
37
  removeFile: () => removeFile,
38
38
  writeFile: () => writeFile2
39
39
  });
40
- module.exports = __toCommonJS(chunk_UB2X7DGZ_exports);
41
- var import_chunk_MXAUURHG = require("./chunk-MXAUURHG.js");
40
+ module.exports = __toCommonJS(chunk_75BIJ5PX_exports);
41
+ var import_chunk_TQFONRJP = require("./chunk-TQFONRJP.js");
42
42
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
43
43
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
44
44
  var import_promises = __toESM(require("fs/promises"));
@@ -3981,13 +3981,13 @@ var fs_functional_exports = {};
3981
3981
  });
3982
3982
  var import_function = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_R6QH57HZ.require_function)());
3983
3983
  var TE = (0, import_chunk_4VNS5WPM.__toESM)(require_TaskEither());
3984
- var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0, import_chunk_MXAUURHG.createDirIfNotExists)(dir), createTaggedSystemError("fs-create-dir", { dir }));
3985
- var writeFile2 = (params) => TE.tryCatch(() => (0, import_chunk_MXAUURHG.writeFile)(params), createTaggedSystemError("fs-write-file", params));
3986
- var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0, import_chunk_MXAUURHG.removeEmptyDirs)(dir), createTaggedSystemError("fs-remove-empty-dirs", { dir }));
3984
+ var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0, import_chunk_TQFONRJP.createDirIfNotExists)(dir), createTaggedSystemError("fs-create-dir", { dir }));
3985
+ var writeFile2 = (params) => TE.tryCatch(() => (0, import_chunk_TQFONRJP.writeFile)(params), createTaggedSystemError("fs-write-file", params));
3986
+ var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0, import_chunk_TQFONRJP.removeEmptyDirs)(dir), createTaggedSystemError("fs-remove-empty-dirs", { dir }));
3987
3987
  var removeDir = (dir) => (0, import_function.pipe)(TE.tryCatch(() => import_promises.default.rm(dir, { recursive: true }), createTaggedSystemError("fs-remove-dir", { dir })));
3988
3988
  var removeFile = (filePath) => (0, import_function.pipe)(TE.tryCatch(() => import_promises.default.unlink(filePath), createTaggedSystemError("fs-remove-file", { filePath })));
3989
- var getNestedFoldersInDir2 = (dir) => () => (0, import_chunk_MXAUURHG.getNestedFoldersInDir)(dir);
3990
- var getFilesInDir2 = (dir, pattern = "**") => () => (0, import_chunk_MXAUURHG.getFilesInDir)(dir, pattern);
3989
+ var getNestedFoldersInDir2 = (dir) => () => (0, import_chunk_TQFONRJP.getNestedFoldersInDir)(dir);
3990
+ var getFilesInDir2 = (dir, pattern = "**") => () => (0, import_chunk_TQFONRJP.getFilesInDir)(dir, pattern);
3991
3991
  function createTaggedSystemError(type, meta) {
3992
3992
  return (e) => ({
3993
3993
  type,
@@ -16,25 +16,25 @@ 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_H6PPJ5PX_exports = {};
20
- __export(chunk_H6PPJ5PX_exports, {
19
+ var chunk_7QC5VORA_exports = {};
20
+ __export(chunk_7QC5VORA_exports, {
21
21
  missingDatasource: () => missingDatasource
22
22
  });
23
- module.exports = __toCommonJS(chunk_H6PPJ5PX_exports);
24
- var import_chunk_3WXUQZS7 = require("./chunk-3WXUQZS7.js");
25
- var import_chunk_VNIE2AZB = require("./chunk-VNIE2AZB.js");
23
+ module.exports = __toCommonJS(chunk_7QC5VORA_exports);
24
+ var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
25
+ var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
26
26
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
27
27
  var missingDatasource = `
28
28
  You don't have any ${(0, import_chunk_PG5FDKSF.bold)("datasource")} defined in your ${(0, import_chunk_PG5FDKSF.bold)("schema.prisma")}.
29
29
  You can define a datasource like this:
30
30
 
31
31
  ${(0, import_chunk_PG5FDKSF.bold)(
32
- (0, import_chunk_VNIE2AZB.highlightDatamodel)(`datasource db {
32
+ (0, import_chunk_TQCLUNM2.highlightDatamodel)(`datasource db {
33
33
  provider = "postgresql"
34
34
  url = env("DB_URL")
35
35
  }`)
36
36
  )}
37
37
 
38
38
  More information in our documentation:
39
- ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/prisma-schema")}
39
+ ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
40
40
  `;
@@ -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_OENCCIMK_exports = {};
30
- __export(chunk_OENCCIMK_exports, {
29
+ var chunk_AGCXD33Q_exports = {};
30
+ __export(chunk_AGCXD33Q_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_OENCCIMK_exports);
34
+ module.exports = __toCommonJS(chunk_AGCXD33Q_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
37
37
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
- var import_chunk_5CBDEFHE = require("./chunk-5CBDEFHE.js");
39
- var import_chunk_7NFX7KFI = require("./chunk-7NFX7KFI.js");
38
+ var import_chunk_B4WDAX32 = require("./chunk-B4WDAX32.js");
39
+ var import_chunk_GFAWJ2TV = require("./chunk-GFAWJ2TV.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,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: mergeSchemas]`;
62
- super((0, import_chunk_5CBDEFHE.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_B4WDAX32.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "MergeSchemasError";
64
64
  }
65
65
  };
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
72
72
  const params = JSON.stringify({
73
73
  schema: options.schemas
74
74
  });
75
- return import_chunk_7NFX7KFI.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_GFAWJ2TV.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -26,8 +26,8 @@ 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_N2IUVVYJ_exports = {};
30
- __export(chunk_N2IUVVYJ_exports, {
29
+ var chunk_AVHPQM6S_exports = {};
30
+ __export(chunk_AVHPQM6S_exports, {
31
31
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
32
32
  checkUnsupportedSchemaEngineWasm: () => checkUnsupportedSchemaEngineWasm,
33
33
  forbiddenCmdFlagWithSchemaEngineWasm: () => forbiddenCmdFlagWithSchemaEngineWasm,
@@ -36,37 +36,40 @@ __export(chunk_N2IUVVYJ_exports, {
36
36
  getBinaryTargetForCurrentPlatform: () => import_get_platform2.getBinaryTargetForCurrentPlatform,
37
37
  getGenerator: () => getGenerator,
38
38
  getGenerators: () => getGenerators,
39
+ getNodeAPIName: () => import_get_platform2.getNodeAPIName,
39
40
  knownBinaryTargets: () => knownBinaryTargets,
40
41
  loadSchemaContext: () => loadSchemaContext,
41
42
  processSchemaResult: () => processSchemaResult,
42
43
  skipIndex: () => skipIndex
43
44
  });
44
- module.exports = __toCommonJS(chunk_N2IUVVYJ_exports);
45
- var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
46
- var import_chunk_5MHUYAV3 = require("./chunk-5MHUYAV3.js");
45
+ module.exports = __toCommonJS(chunk_AVHPQM6S_exports);
47
46
  var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
48
47
  var import_chunk_LRU47BGE = require("./chunk-LRU47BGE.js");
48
+ var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
49
+ var import_chunk_5XFNC2RY = require("./chunk-5XFNC2RY.js");
50
+ var import_chunk_B22EOFPW = require("./chunk-B22EOFPW.js");
49
51
  var import_chunk_GXW4NTU2 = require("./chunk-GXW4NTU2.js");
50
52
  var import_chunk_5FJ3MENK = require("./chunk-5FJ3MENK.js");
51
- var import_chunk_H6PPJ5PX = require("./chunk-H6PPJ5PX.js");
52
- var import_chunk_33K2EQQZ = require("./chunk-33K2EQQZ.js");
53
+ var import_chunk_7QC5VORA = require("./chunk-7QC5VORA.js");
54
+ var import_chunk_AX5N26KG = require("./chunk-AX5N26KG.js");
53
55
  var import_chunk_6QTN4DDB = require("./chunk-6QTN4DDB.js");
54
- var import_chunk_3WXUQZS7 = require("./chunk-3WXUQZS7.js");
56
+ var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
55
57
  var import_chunk_CRVLHWC5 = require("./chunk-CRVLHWC5.js");
56
- var import_chunk_RXERQWBD = require("./chunk-RXERQWBD.js");
57
- var import_chunk_PTRXLDT7 = require("./chunk-PTRXLDT7.js");
58
- var import_chunk_NPSVUZBN = require("./chunk-NPSVUZBN.js");
59
- var import_chunk_OENCCIMK = require("./chunk-OENCCIMK.js");
58
+ var import_chunk_247ICNDG = require("./chunk-247ICNDG.js");
59
+ var import_chunk_ROEAPAY4 = require("./chunk-ROEAPAY4.js");
60
+ var import_chunk_IEJB3DQI = require("./chunk-IEJB3DQI.js");
61
+ var import_chunk_AGCXD33Q = require("./chunk-AGCXD33Q.js");
60
62
  var import_chunk_OKVM3CW4 = require("./chunk-OKVM3CW4.js");
61
- var import_chunk_7NFX7KFI = require("./chunk-7NFX7KFI.js");
63
+ var import_chunk_GFAWJ2TV = require("./chunk-GFAWJ2TV.js");
62
64
  var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
63
65
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
66
+ var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
64
67
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
65
68
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
66
69
  var import_chunk_BPDMLM32 = require("./chunk-BPDMLM32.js");
67
70
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
68
71
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
69
- var import_chunk_32LLAKF4 = require("./chunk-32LLAKF4.js");
72
+ var import_chunk_BVJP43JS = require("./chunk-BVJP43JS.js");
70
73
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
71
74
  var import_path = __toESM(require("path"));
72
75
  var import_debug = __toESM(require("@prisma/debug"));
@@ -79,7 +82,7 @@ var forbiddenCmdFlagWithSchemaEngineWasm = ({ cmd, flag }) => `
79
82
  Passing the ${(0, import_chunk_PG5FDKSF.green)(`${flag}`)} flag to the ${(0, import_chunk_PG5FDKSF.green)(`prisma ${cmd}`)} command is not supported when
80
83
  defining an ${(0, import_chunk_PG5FDKSF.green)(`adapter`)} in Prisma config file (e.g., ${(0, import_chunk_PG5FDKSF.green)(`\`prisma.config.ts\``)}).
81
84
 
82
- More information about this limitation: ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/schema-engine-limitations")}
85
+ More information about this limitation: ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/schema-engine-limitations")}
83
86
  `;
84
87
  function checkUnsupportedSchemaEngineWasm({
85
88
  cmd,
@@ -100,7 +103,7 @@ var debug = (0, import_debug.default)("prisma:format");
100
103
  async function formatSchema({ schemas }, inputFormattingOptions) {
101
104
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
102
105
  handleFormatPanic(() => {
103
- import_chunk_7NFX7KFI.prismaSchemaWasm.debug_panic();
106
+ import_chunk_GFAWJ2TV.prismaSchemaWasm.debug_panic();
104
107
  });
105
108
  }
106
109
  const defaultFormattingOptions = {
@@ -117,10 +120,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
117
120
  const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
118
121
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
119
122
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
120
- const lintDiagnostics2 = (0, import_chunk_NPSVUZBN.lintSchema)({ schemas: formattedMultipleSchemas2 });
123
+ const lintDiagnostics2 = (0, import_chunk_IEJB3DQI.lintSchema)({ schemas: formattedMultipleSchemas2 });
121
124
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
122
125
  });
123
- const lintWarnings = (0, import_chunk_NPSVUZBN.getLintWarningsAsText)(lintDiagnostics);
126
+ const lintWarnings = (0, import_chunk_IEJB3DQI.getLintWarningsAsText)(lintDiagnostics);
124
127
  if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
125
128
  console.warn(lintWarnings);
126
129
  }
@@ -147,7 +150,7 @@ function handleFormatPanic(tryCb) {
147
150
  }
148
151
  }
149
152
  function formatWasm(schema, documentFormattingParams) {
150
- const formattedSchema = import_chunk_7NFX7KFI.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
153
+ const formattedSchema = import_chunk_GFAWJ2TV.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
151
154
  return formattedSchema;
152
155
  }
153
156
  async function loadSchemaContext({
@@ -187,7 +190,7 @@ async function processSchemaResult({
187
190
  if (printLoadMessage) {
188
191
  (0, import_chunk_OKVM3CW4.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
189
192
  }
190
- const configFromPsl = await (0, import_chunk_RXERQWBD.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
193
+ const configFromPsl = await (0, import_chunk_247ICNDG.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
191
194
  const datasourceFromPsl = configFromPsl.datasources.at(0);
192
195
  const primaryDatasource = (0, import_chunk_XKZ6CBLA.z)(schemaEngineConfig).with({ engine: "classic" }, ({ datasource }) => {
193
196
  const { url, directUrl, shadowDatabaseUrl } = datasource;
@@ -220,7 +223,7 @@ function getPrimaryDatasourceDirectory(primaryDatasource) {
220
223
  }
221
224
  return null;
222
225
  }
223
- var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_32LLAKF4.require_p_map)());
226
+ var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_BVJP43JS.require_p_map)());
224
227
  var debug2 = (0, import_debug2.default)("prisma:getGenerators");
225
228
  async function getGenerators(options) {
226
229
  if (options.registry === void 0 && options.providerAliases !== void 0) {
@@ -253,19 +256,19 @@ async function getGenerators(options) {
253
256
  throw new Error(`no schema provided for getGenerators`);
254
257
  }
255
258
  if (!schemaContext.primaryDatasource) {
256
- throw new Error(import_chunk_H6PPJ5PX.missingDatasource);
259
+ throw new Error(import_chunk_7QC5VORA.missingDatasource);
257
260
  }
258
261
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
259
262
  const previewFeatures = (0, import_chunk_CRVLHWC5.extractPreviewFeatures)(schemaContext.generators);
260
- const dmmf = await (0, import_chunk_PTRXLDT7.getDMMF)({
263
+ const dmmf = await (0, import_chunk_ROEAPAY4.getDMMF)({
261
264
  datamodel: schemaContext.schemaFiles,
262
265
  previewFeatures
263
266
  });
264
267
  if (dmmf.datamodel.models.length === 0 && !allowNoModels) {
265
268
  if (schemaContext.primaryDatasource.provider === "mongodb") {
266
- throw new Error(import_chunk_33K2EQQZ.missingModelMessageMongoDB);
269
+ throw new Error(import_chunk_AX5N26KG.missingModelMessageMongoDB);
267
270
  }
268
- throw new Error(import_chunk_33K2EQQZ.missingModelMessage);
271
+ throw new Error(import_chunk_AX5N26KG.missingModelMessage);
269
272
  }
270
273
  const generatorConfigs = filterGenerators(overrideGenerators || schemaContext.generators, generatorNames);
271
274
  await validateGenerators(generatorConfigs);
@@ -308,7 +311,7 @@ You need to define \`output\` in the generator block in the schema file.`
308
311
  fromEnvVar: null
309
312
  };
310
313
  }
311
- const datamodel = (0, import_chunk_OENCCIMK.mergeSchemas)({ schemas: schemaContext.schemaFiles });
314
+ const datamodel = (0, import_chunk_AGCXD33Q.mergeSchemas)({ schemas: schemaContext.schemaFiles });
312
315
  const envPaths = (0, import_chunk_6QTN4DDB.getEnvPaths)(schemaContext.schemaPath, { cwd: generatorConfig.output.value });
313
316
  const options2 = {
314
317
  datamodel,
@@ -366,16 +369,17 @@ generator gen {
366
369
  }
367
370
  const generatorBinaryTargets = g.options?.generator?.binaryTargets;
368
371
  if (generatorBinaryTargets && generatorBinaryTargets.length > 0) {
369
- for (const binaryTarget of generatorBinaryTargets) {
370
- if (!neededVersions[neededVersion].binaryTargets.find((object) => object.value === binaryTarget.value)) {
371
- neededVersions[neededVersion].binaryTargets.push(binaryTarget);
372
+ for (const binaryTarget2 of generatorBinaryTargets) {
373
+ if (!neededVersions[neededVersion].binaryTargets.find((object) => object.value === binaryTarget2.value)) {
374
+ neededVersions[neededVersion].binaryTargets.push(binaryTarget2);
372
375
  }
373
376
  }
374
377
  }
375
378
  }
376
379
  }
380
+ const queryEngineType = (0, import_chunk_B22EOFPW.binaryTypeToEngineType)(import_chunk_FYZCPL2Z.BinaryType.QueryEngineLibrary);
377
381
  debug2("neededVersions", JSON.stringify(neededVersions, null, 2));
378
- const { binaryPathsByVersion } = await (0, import_chunk_5MHUYAV3.getBinaryPathsByVersion)({
382
+ const { binaryPathsByVersion, binaryTarget } = await (0, import_chunk_5XFNC2RY.getBinaryPathsByVersion)({
379
383
  neededVersions,
380
384
  // We're lazily computing the binary target here, to avoid printing the
381
385
  // `Prisma failed to detect the libssl/openssl version to use` warning
@@ -396,6 +400,17 @@ generator gen {
396
400
  const generatorBinaryPaths = (0, import_chunk_GXW4NTU2.pick)(binaryPaths ?? {}, generator.manifest.requiresEngines);
397
401
  debug2({ generatorBinaryPaths });
398
402
  generator.setBinaryPaths(generatorBinaryPaths);
403
+ if (engineVersion !== version2 && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
404
+ const customDmmf = await (0, import_chunk_ROEAPAY4.getDMMF)({
405
+ datamodel: schemaContext.schemaFiles,
406
+ previewFeatures
407
+ });
408
+ const options2 = { ...generator.options, dmmf: customDmmf };
409
+ debug2("generator.manifest.prettyName", generator.manifest.prettyName);
410
+ debug2("options", options2);
411
+ debug2("options.generator.binaryTargets", options2.generator.binaryTargets);
412
+ generator.setOptions(options2);
413
+ }
399
414
  }
400
415
  }
401
416
  return generators;
@@ -483,7 +498,7 @@ var forbiddenCmdWithDataProxyFlagMessage = (command) => `
483
498
  Using an Accelerate URL is not supported for this CLI command ${(0, import_chunk_PG5FDKSF.green)(`prisma ${command}`)} yet.
484
499
  Please use a direct connection to your database via the datasource \`directUrl\` setting.
485
500
 
486
- More information about this limitation: ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/accelerate-limitations")}
501
+ More information about this limitation: ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/accelerate-limitations")}
487
502
  `;
488
503
  function checkUnsupportedDataProxy({
489
504
  cmd,
@@ -496,7 +511,7 @@ function checkUnsupportedDataProxy({
496
511
  }
497
512
  }
498
513
  if (!schemaContext?.primaryDatasource) return;
499
- const url = (0, import_chunk_RXERQWBD.resolveUrl)((0, import_chunk_RXERQWBD.getEffectiveUrl)(schemaContext.primaryDatasource));
514
+ const url = (0, import_chunk_247ICNDG.resolveUrl)((0, import_chunk_247ICNDG.getEffectiveUrl)(schemaContext.primaryDatasource));
500
515
  if (url?.startsWith("prisma://")) {
501
516
  throw new Error(forbiddenCmdWithDataProxyFlagMessage(cmd));
502
517
  }
@@ -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_33K2EQQZ_exports = {};
20
- __export(chunk_33K2EQQZ_exports, {
19
+ var chunk_AX5N26KG_exports = {};
20
+ __export(chunk_AX5N26KG_exports, {
21
21
  missingGeneratorMessage: () => missingGeneratorMessage,
22
22
  missingModelMessage: () => missingModelMessage,
23
23
  missingModelMessageMongoDB: () => missingModelMessageMongoDB
24
24
  });
25
- module.exports = __toCommonJS(chunk_33K2EQQZ_exports);
26
- var import_chunk_3WXUQZS7 = require("./chunk-3WXUQZS7.js");
27
- var import_chunk_VNIE2AZB = require("./chunk-VNIE2AZB.js");
25
+ module.exports = __toCommonJS(chunk_AX5N26KG_exports);
26
+ var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
27
+ var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
28
28
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
29
29
  var missingGeneratorMessage = `
30
30
  ${(0, import_chunk_PG5FDKSF.blue)("info")} You don't have any generators defined in your ${(0, import_chunk_PG5FDKSF.bold)(
@@ -33,7 +33,7 @@ ${(0, import_chunk_PG5FDKSF.blue)("info")} You don't have any generators defined
33
33
  You can define them like this:
34
34
 
35
35
  ${(0, import_chunk_PG5FDKSF.bold)(
36
- (0, import_chunk_VNIE2AZB.highlightDatamodel)(`generator client {
36
+ (0, import_chunk_TQCLUNM2.highlightDatamodel)(`generator client {
37
37
  provider = "prisma-client-js"
38
38
  }`)
39
39
  )}`;
@@ -44,7 +44,7 @@ You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your
44
44
  You can define a model like this:
45
45
 
46
46
  ${(0, import_chunk_PG5FDKSF.bold)(
47
- (0, import_chunk_VNIE2AZB.highlightDatamodel)(`model User {
47
+ (0, import_chunk_TQCLUNM2.highlightDatamodel)(`model User {
48
48
  id Int @id @default(autoincrement())
49
49
  email String @unique
50
50
  name String?
@@ -52,7 +52,7 @@ ${(0, import_chunk_PG5FDKSF.bold)(
52
52
  )}
53
53
 
54
54
  More information in our documentation:
55
- ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/prisma-schema")}
55
+ ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
56
56
  `;
57
57
  var missingModelMessageMongoDB = `
58
58
  You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your ${(0, import_chunk_PG5FDKSF.bold)(
@@ -61,7 +61,7 @@ You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your
61
61
  You can define a model like this:
62
62
 
63
63
  ${(0, import_chunk_PG5FDKSF.bold)(
64
- (0, import_chunk_VNIE2AZB.highlightDatamodel)(`model User {
64
+ (0, import_chunk_TQCLUNM2.highlightDatamodel)(`model User {
65
65
  id String @id @default(auto()) @map("_id") @db.ObjectId
66
66
  email String @unique
67
67
  name String?
@@ -69,5 +69,5 @@ ${(0, import_chunk_PG5FDKSF.bold)(
69
69
  )}
70
70
 
71
71
  More information in our documentation:
72
- ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/prisma-schema")}
72
+ ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
73
73
  `;