@prisma/internals 6.19.0 → 6.20.0-integration-next.1

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-GMW36QQF.js → chunk-22HIO2UL.js} +7 -7
  2. package/dist/{chunk-C7SAKLK2.js → chunk-24ZPBDBI.js} +11 -11
  3. package/dist/{chunk-D7OTFXCP.js → chunk-2Q43C56O.js} +5 -5
  4. package/dist/{chunk-TBR6SNKL.js → chunk-3L2WF742.js} +5 -5
  5. package/dist/{chunk-I6WLABB2.js → chunk-3WXUQZS7.js} +14 -5
  6. package/dist/{chunk-Y7XBA7JY.js → chunk-3ZWEK4N6.js} +5 -5
  7. package/dist/{chunk-RS2R7COT.js → chunk-5I4ERIIY.js} +3 -9
  8. package/dist/{chunk-F2OZV76L.js → chunk-5MHUYAV3.js} +9 -9
  9. package/dist/{chunk-HO5HRHFZ.js → chunk-5W3BSMTH.js} +3 -6
  10. package/dist/{chunk-FGU7IK4W.js → chunk-6AA7BHPW.js} +8 -9
  11. package/dist/{chunk-E6MOBIU5.js → chunk-73HXEN2A.js} +5 -5
  12. package/dist/{chunk-LU7NT333.js → chunk-7FBMZKZS.js} +11 -11
  13. package/dist/{chunk-WFNB7VRA.js → chunk-ARC7TW3L.js} +4 -14
  14. package/dist/{chunk-CCLAMTCA.js → chunk-B2BNIZB2.js} +7 -8
  15. package/dist/{chunk-UQUWZJVN.js → chunk-BM3JIFQT.js} +7 -7
  16. package/dist/{chunk-HFFWZTVM.js → chunk-BUQN4WLU.js} +7 -9
  17. package/dist/{chunk-AP3F7M3T.js → chunk-C5YUUOQW.js} +12 -12
  18. package/dist/{chunk-HHG4DGHC.js → chunk-CGLLQXZE.js} +11 -12
  19. package/dist/{chunk-LV27YCGC.js → chunk-DQV64JMK.js} +11 -11
  20. package/dist/chunk-DYV47NUW.js +796 -0
  21. package/dist/{chunk-IDINCQMN.js → chunk-FF7OLLBP.js} +12 -784
  22. package/dist/{chunk-JTS4UPHJ.js → chunk-GH4UGGRD.js} +5 -5
  23. package/dist/{chunk-4CGPN5SR.js → chunk-GJSFP4V4.js} +3 -9
  24. package/dist/{chunk-4JCVHBYR.js → chunk-GL7OANR6.js} +5 -5
  25. package/dist/{chunk-OAT7ZJED.js → chunk-H5STSTVK.js} +7 -20
  26. package/dist/{chunk-FYZCPL2Z.js → chunk-HNRMSI3R.js} +5 -8
  27. package/dist/{chunk-2GUGGLPK.js → chunk-KGES6NIS.js} +38 -94
  28. package/dist/{chunk-NVNI2SRU.js → chunk-KNNTV7IN.js} +687 -213
  29. package/dist/{chunk-SOKSKSEX.js → chunk-LA5QBRTU.js} +14 -20
  30. package/dist/{chunk-5AI4FIZ3.js → chunk-MEOOYUIZ.js} +10 -10
  31. package/dist/{chunk-FHZ5QJLR.js → chunk-MGIYZQLY.js} +5 -5
  32. package/dist/{chunk-TQFONRJP.js → chunk-MLFKBBDL.js} +5 -5
  33. package/dist/{chunk-7QC5VORA.js → chunk-MYLPCGTT.js} +5 -5
  34. package/dist/{chunk-EYVG6XQS.js → chunk-OKVM3CW4.js} +3 -39
  35. package/dist/{chunk-JOIIWB3U.js → chunk-QOZ7USPD.js} +193 -159
  36. package/dist/{chunk-BVJP43JS.js → chunk-QSVWJ2S2.js} +13 -784
  37. package/dist/{chunk-QJ3QPUM5.js → chunk-RHMWJEBL.js} +5 -5
  38. package/dist/{chunk-75BIJ5PX.js → chunk-SMJRM3EM.js} +9 -9
  39. package/dist/{chunk-AX5N26KG.js → chunk-TGA7DC5A.js} +14 -9
  40. package/dist/{chunk-LFFCR67R.js → chunk-UR5IPQXA.js} +14 -20
  41. package/dist/{chunk-5IQ5L5E4.js → chunk-VFU3QB5Z.js} +38 -94
  42. package/dist/{chunk-PHFQSMQF.js → chunk-VFZCLI5X.js} +5 -5
  43. package/dist/{chunk-E4H6V3Z4.js → chunk-VHE2A7YV.js} +11 -11
  44. package/dist/{chunk-UHI6VYFX.js → chunk-WJKBKH3Y.js} +5 -5
  45. package/dist/{chunk-TZJROXB3.js → chunk-WSZXPLJQ.js} +4 -4
  46. package/dist/{chunk-WYQJ4JWO.js → chunk-ZUKCLMNA.js} +12 -12
  47. package/dist/cli/checkUnsupportedDataProxy.js +53 -60
  48. package/dist/cli/getGeneratorSuccessMessage.js +2 -3
  49. package/dist/cli/getSchema.d.ts +1 -15
  50. package/dist/cli/getSchema.js +4 -5
  51. package/dist/cli/hashes.js +4 -4
  52. package/dist/cli/schemaContext.d.ts +1 -3
  53. package/dist/cli/schemaContext.js +53 -60
  54. package/dist/engine-commands/errorHelpers.js +4 -4
  55. package/dist/engine-commands/formatSchema.js +52 -59
  56. package/dist/engine-commands/getConfig.d.ts +0 -1
  57. package/dist/engine-commands/getConfig.js +13 -13
  58. package/dist/engine-commands/getDmmf.js +10 -10
  59. package/dist/engine-commands/getEngineVersion.js +6 -9
  60. package/dist/engine-commands/getEnginesInfo.d.ts +0 -1
  61. package/dist/engine-commands/getEnginesInfo.js +7 -9
  62. package/dist/engine-commands/index.js +64 -71
  63. package/dist/engine-commands/lintSchema.js +9 -9
  64. package/dist/engine-commands/mergeSchemas.js +10 -10
  65. package/dist/engine-commands/queryEngineCommons.js +6 -6
  66. package/dist/engine-commands/validate.js +10 -10
  67. package/dist/errorReporting.js +6 -6
  68. package/dist/get-generators/getGenerators.d.ts +0 -1
  69. package/dist/get-generators/getGenerators.js +55 -62
  70. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  71. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  72. package/dist/get-generators/utils/getBinaryPathsByVersion.js +6 -5
  73. package/dist/getPackedPackage.js +4 -3
  74. package/dist/index.d.ts +1 -10
  75. package/dist/index.js +95 -112
  76. package/dist/{multipart-parser-3AFJFP6K.js → multipart-parser-UV3WZSWW.js} +6 -6
  77. package/dist/resolveBinary.js +8 -7
  78. package/dist/schemaEngineCommands.js +9 -8
  79. package/dist/sendPanic.js +4 -4
  80. package/dist/utils/drawBox.js +2 -2
  81. package/dist/utils/fs-functional.js +10 -10
  82. package/dist/utils/fs-utils.js +8 -8
  83. package/dist/utils/getVersionFromPackageJson.js +3 -3
  84. package/dist/utils/handlePanic.js +6 -6
  85. package/dist/utils/link.js +2 -2
  86. package/dist/utils/missingDatasource.js +3 -3
  87. package/dist/utils/missingGeneratorMessage.js +5 -5
  88. package/dist/utils/serializeQueryEngineName.js +2 -2
  89. package/dist/wasm.js +5 -5
  90. package/package.json +15 -16
  91. package/dist/chunk-3FP46GUV.js +0 -471
  92. package/dist/chunk-46ABODUM.js +0 -186
  93. package/dist/chunk-6TTRTZXU.js +0 -37
  94. package/dist/chunk-D4VDA2TZ.js +0 -66
  95. package/dist/chunk-DZYINYAA.js +0 -68
  96. package/dist/chunk-ERSH2BQA.js +0 -58
  97. package/dist/chunk-PZMRR772.js +0 -41
  98. package/dist/chunk-T2PM5TKT.js +0 -55
  99. package/dist/cli/checkUnsupportedSchemaEngineWasm.d.ts +0 -22
  100. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +0 -135
  101. package/dist/client/getClientEngineType.d.ts +0 -7
  102. package/dist/client/getClientEngineType.js +0 -26
  103. package/dist/dotenvExpand.d.ts +0 -35
  104. package/dist/dotenvExpand.js +0 -25
  105. package/dist/utils/cloudflareD1.d.ts +0 -5
  106. package/dist/utils/cloudflareD1.js +0 -27
  107. package/dist/utils/getEnvPaths.d.ts +0 -14
  108. package/dist/utils/getEnvPaths.js +0 -29
  109. package/dist/utils/handleEngineLoadingErrors.d.ts +0 -8
  110. package/dist/utils/handleEngineLoadingErrors.js +0 -27
  111. package/dist/utils/load.d.ts +0 -6
  112. package/dist/utils/load.js +0 -28
  113. package/dist/utils/loadEnvFile.d.ts +0 -10
  114. package/dist/utils/loadEnvFile.js +0 -30
  115. package/dist/utils/tryLoadEnvs.d.ts +0 -25
  116. package/dist/utils/tryLoadEnvs.js +0 -30
@@ -16,11 +16,11 @@ 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_QJ3QPUM5_exports = {};
20
- __export(chunk_QJ3QPUM5_exports, {
19
+ var chunk_RHMWJEBL_exports = {};
20
+ __export(chunk_RHMWJEBL_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_QJ3QPUM5_exports);
24
- var import_chunk_CCLAMTCA = require("./chunk-CCLAMTCA.js");
25
- var packageJson = (0, import_chunk_CCLAMTCA.require_package)();
23
+ module.exports = __toCommonJS(chunk_RHMWJEBL_exports);
24
+ var import_chunk_6AA7BHPW = require("./chunk-6AA7BHPW.js");
25
+ var packageJson = (0, import_chunk_6AA7BHPW.require_package)();
26
26
  var version = packageJson.version;
@@ -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_75BIJ5PX_exports = {};
30
- __export(chunk_75BIJ5PX_exports, {
29
+ var chunk_SMJRM3EM_exports = {};
30
+ __export(chunk_SMJRM3EM_exports, {
31
31
  createDirIfNotExists: () => createDirIfNotExists2,
32
32
  fs_functional_exports: () => fs_functional_exports,
33
33
  getFilesInDir: () => getFilesInDir2,
@@ -37,8 +37,8 @@ __export(chunk_75BIJ5PX_exports, {
37
37
  removeFile: () => removeFile,
38
38
  writeFile: () => writeFile2
39
39
  });
40
- module.exports = __toCommonJS(chunk_75BIJ5PX_exports);
41
- var import_chunk_TQFONRJP = require("./chunk-TQFONRJP.js");
40
+ module.exports = __toCommonJS(chunk_SMJRM3EM_exports);
41
+ var import_chunk_MLFKBBDL = require("./chunk-MLFKBBDL.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_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 }));
3984
+ var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0, import_chunk_MLFKBBDL.createDirIfNotExists)(dir), createTaggedSystemError("fs-create-dir", { dir }));
3985
+ var writeFile2 = (params) => TE.tryCatch(() => (0, import_chunk_MLFKBBDL.writeFile)(params), createTaggedSystemError("fs-write-file", params));
3986
+ var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0, import_chunk_MLFKBBDL.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_TQFONRJP.getNestedFoldersInDir)(dir);
3990
- var getFilesInDir2 = (dir, pattern = "**") => () => (0, import_chunk_TQFONRJP.getFilesInDir)(dir, pattern);
3989
+ var getNestedFoldersInDir2 = (dir) => () => (0, import_chunk_MLFKBBDL.getNestedFoldersInDir)(dir);
3990
+ var getFilesInDir2 = (dir, pattern = "**") => () => (0, import_chunk_MLFKBBDL.getFilesInDir)(dir, pattern);
3991
3991
  function createTaggedSystemError(type, meta) {
3992
3992
  return (e) => ({
3993
3993
  type,
@@ -16,27 +16,32 @@ 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_AX5N26KG_exports = {};
20
- __export(chunk_AX5N26KG_exports, {
19
+ var chunk_TGA7DC5A_exports = {};
20
+ __export(chunk_TGA7DC5A_exports, {
21
21
  missingGeneratorMessage: () => missingGeneratorMessage,
22
22
  missingModelMessage: () => missingModelMessage,
23
23
  missingModelMessageMongoDB: () => missingModelMessageMongoDB
24
24
  });
25
- module.exports = __toCommonJS(chunk_AX5N26KG_exports);
26
- var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
25
+ module.exports = __toCommonJS(chunk_TGA7DC5A_exports);
26
+ var import_chunk_3WXUQZS7 = require("./chunk-3WXUQZS7.js");
27
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)(
31
31
  "schema.prisma"
32
32
  )}, so nothing will be generated.
33
- You can define them like this:
33
+ Add the Prisma Client generator like this:
34
34
 
35
35
  ${(0, import_chunk_PG5FDKSF.bold)(
36
36
  (0, import_chunk_TQCLUNM2.highlightDatamodel)(`generator client {
37
- provider = "prisma-client-js"
37
+ provider = "prisma-client"
38
+ output = "../src/generated/prisma"
38
39
  }`)
39
- )}`;
40
+ )}
41
+
42
+ More information in our documentation:
43
+ ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/prisma-schema")}
44
+ `;
40
45
  var missingModelMessage = `
41
46
  You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your ${(0, import_chunk_PG5FDKSF.bold)(
42
47
  "schema.prisma"
@@ -52,7 +57,7 @@ ${(0, import_chunk_PG5FDKSF.bold)(
52
57
  )}
53
58
 
54
59
  More information in our documentation:
55
- ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
60
+ ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/prisma-schema")}
56
61
  `;
57
62
  var missingModelMessageMongoDB = `
58
63
  You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your ${(0, import_chunk_PG5FDKSF.bold)(
@@ -69,5 +74,5 @@ ${(0, import_chunk_PG5FDKSF.bold)(
69
74
  )}
70
75
 
71
76
  More information in our documentation:
72
- ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
77
+ ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/prisma-schema")}
73
78
  `;
@@ -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_LFFCR67R_exports = {};
30
- __export(chunk_LFFCR67R_exports, {
29
+ var chunk_UR5IPQXA_exports = {};
30
+ __export(chunk_UR5IPQXA_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_LFFCR67R_exports);
38
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
39
- var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
37
+ module.exports = __toCommonJS(chunk_UR5IPQXA_exports);
38
+ var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
40
39
  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");
40
+ var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
41
+ var import_chunk_GH4UGGRD = require("./chunk-GH4UGGRD.js");
42
+ var import_chunk_MGIYZQLY = require("./chunk-MGIYZQLY.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_D7OTFXCP.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_GH4UGGRD.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
68
  this.name = "GetConfigError";
69
69
  }
70
70
  };
@@ -82,23 +82,17 @@ function resolveUrl(envValue) {
82
82
  return urlFromValue ?? urlEnvVarValue;
83
83
  }
84
84
  async function getConfig(options) {
85
- const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getConfigWasm");
85
+ const debugErrorType = (0, import_chunk_WSZXPLJQ.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_Y7XBA7JY.prismaSchemaWasm.debug_panic();
92
+ import_chunk_MGIYZQLY.prismaSchemaWasm.debug_panic();
93
93
  }
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;
94
+ const params = JSON.stringify({ prismaSchema: options.datamodel });
95
+ return import_chunk_MGIYZQLY.prismaSchemaWasm.get_config(params);
102
96
  },
103
97
  (e) => ({
104
98
  type: "wasm-error",
@@ -156,12 +150,12 @@ async function getConfig(options) {
156
150
  return panic;
157
151
  }
158
152
  const errorOutput = e.error.message;
159
- return new GetConfigError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
153
+ return new GetConfigError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
160
154
  }).with({ type: "validation-error" }, (e) => {
161
155
  return new GetConfigError({
162
156
  _tag: "parsed",
163
157
  errorCode: SCHEMA_VALIDATION_ERROR_CODE,
164
- reason: (0, import_chunk_TZJROXB3.createSchemaValidationError)(e.reason),
158
+ reason: (0, import_chunk_WSZXPLJQ.createSchemaValidationError)(e.reason),
165
159
  message: formatErrors(e.error)
166
160
  });
167
161
  }).otherwise((e) => {
@@ -26,49 +26,44 @@ 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_5IQ5L5E4_exports = {};
30
- __export(chunk_5IQ5L5E4_exports, {
29
+ var chunk_VFU3QB5Z_exports = {};
30
+ __export(chunk_VFU3QB5Z_exports, {
31
31
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
32
- checkUnsupportedSchemaEngineWasm: () => checkUnsupportedSchemaEngineWasm,
33
- forbiddenCmdFlagWithSchemaEngineWasm: () => forbiddenCmdFlagWithSchemaEngineWasm,
34
32
  forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
35
33
  formatSchema: () => formatSchema,
36
34
  getBinaryTargetForCurrentPlatform: () => import_get_platform2.getBinaryTargetForCurrentPlatform,
37
35
  getGenerator: () => getGenerator,
38
36
  getGenerators: () => getGenerators,
39
- getNodeAPIName: () => import_get_platform2.getNodeAPIName,
40
37
  knownBinaryTargets: () => knownBinaryTargets,
41
38
  loadSchemaContext: () => loadSchemaContext,
42
39
  processSchemaResult: () => processSchemaResult,
43
40
  skipIndex: () => skipIndex
44
41
  });
45
- module.exports = __toCommonJS(chunk_5IQ5L5E4_exports);
46
- var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
42
+ module.exports = __toCommonJS(chunk_VFU3QB5Z_exports);
47
43
  var import_chunk_LRU47BGE = require("./chunk-LRU47BGE.js");
48
44
  var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
49
- var import_chunk_F2OZV76L = require("./chunk-F2OZV76L.js");
50
- var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
45
+ var import_chunk_5MHUYAV3 = require("./chunk-5MHUYAV3.js");
46
+ var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
51
47
  var import_chunk_GXW4NTU2 = require("./chunk-GXW4NTU2.js");
52
48
  var import_chunk_5FJ3MENK = require("./chunk-5FJ3MENK.js");
53
- var import_chunk_7QC5VORA = require("./chunk-7QC5VORA.js");
54
- var import_chunk_AX5N26KG = require("./chunk-AX5N26KG.js");
55
- var import_chunk_46ABODUM = require("./chunk-46ABODUM.js");
56
- var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
49
+ var import_chunk_MYLPCGTT = require("./chunk-MYLPCGTT.js");
50
+ var import_chunk_TGA7DC5A = require("./chunk-TGA7DC5A.js");
51
+ var import_chunk_3WXUQZS7 = require("./chunk-3WXUQZS7.js");
57
52
  var import_chunk_CRVLHWC5 = require("./chunk-CRVLHWC5.js");
58
- var import_chunk_LFFCR67R = require("./chunk-LFFCR67R.js");
59
- var import_chunk_C7SAKLK2 = require("./chunk-C7SAKLK2.js");
60
- var import_chunk_E6MOBIU5 = require("./chunk-E6MOBIU5.js");
61
- var import_chunk_LU7NT333 = require("./chunk-LU7NT333.js");
62
- var import_chunk_EYVG6XQS = require("./chunk-EYVG6XQS.js");
63
- var import_chunk_Y7XBA7JY = require("./chunk-Y7XBA7JY.js");
64
- var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
53
+ var import_chunk_3L2WF742 = require("./chunk-3L2WF742.js");
54
+ var import_chunk_7FBMZKZS = require("./chunk-7FBMZKZS.js");
55
+ var import_chunk_UR5IPQXA = require("./chunk-UR5IPQXA.js");
56
+ var import_chunk_DQV64JMK = require("./chunk-DQV64JMK.js");
57
+ var import_chunk_MGIYZQLY = require("./chunk-MGIYZQLY.js");
58
+ var import_chunk_OKVM3CW4 = require("./chunk-OKVM3CW4.js");
65
59
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
66
60
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
67
61
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
68
62
  var import_chunk_BPDMLM32 = require("./chunk-BPDMLM32.js");
69
63
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
64
+ var import_chunk_QSVWJ2S2 = require("./chunk-QSVWJ2S2.js");
65
+ var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
70
66
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
71
- var import_chunk_BVJP43JS = require("./chunk-BVJP43JS.js");
72
67
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
73
68
  var import_path = __toESM(require("path"));
74
69
  var import_debug = __toESM(require("@prisma/debug"));
@@ -77,32 +72,11 @@ var import_engines = require("@prisma/engines");
77
72
  var import_get_platform = require("@prisma/get-platform");
78
73
  var import_path2 = __toESM(require("path"));
79
74
  var import_get_platform2 = require("@prisma/get-platform");
80
- var forbiddenCmdFlagWithSchemaEngineWasm = ({ cmd, flag }) => `
81
- Passing the ${(0, import_chunk_PG5FDKSF.green)(`${flag}`)} flag to the ${(0, import_chunk_PG5FDKSF.green)(`prisma ${cmd}`)} command is not supported when
82
- defining an ${(0, import_chunk_PG5FDKSF.green)(`adapter`)} in Prisma config file (e.g., ${(0, import_chunk_PG5FDKSF.green)(`\`prisma.config.ts\``)}).
83
-
84
- More information about this limitation: ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/schema-engine-limitations")}
85
- `;
86
- function checkUnsupportedSchemaEngineWasm({
87
- cmd,
88
- config,
89
- args,
90
- flags
91
- }) {
92
- if (config.engine !== "js") {
93
- return;
94
- }
95
- for (const flag of flags) {
96
- if (args[flag] !== void 0) {
97
- throw new Error(forbiddenCmdFlagWithSchemaEngineWasm({ cmd, flag }));
98
- }
99
- }
100
- }
101
75
  var debug = (0, import_debug.default)("prisma:format");
102
76
  async function formatSchema({ schemas }, inputFormattingOptions) {
103
77
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
104
78
  handleFormatPanic(() => {
105
- import_chunk_Y7XBA7JY.prismaSchemaWasm.debug_panic();
79
+ import_chunk_MGIYZQLY.prismaSchemaWasm.debug_panic();
106
80
  });
107
81
  }
108
82
  const defaultFormattingOptions = {
@@ -119,10 +93,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
119
93
  const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
120
94
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
121
95
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
122
- const lintDiagnostics2 = (0, import_chunk_E6MOBIU5.lintSchema)({ schemas: formattedMultipleSchemas2 });
96
+ const lintDiagnostics2 = (0, import_chunk_3L2WF742.lintSchema)({ schemas: formattedMultipleSchemas2 });
123
97
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
124
98
  });
125
- const lintWarnings = (0, import_chunk_E6MOBIU5.getLintWarningsAsText)(lintDiagnostics);
99
+ const lintWarnings = (0, import_chunk_3L2WF742.getLintWarningsAsText)(lintDiagnostics);
126
100
  if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
127
101
  console.warn(lintWarnings);
128
102
  }
@@ -149,7 +123,7 @@ function handleFormatPanic(tryCb) {
149
123
  }
150
124
  }
151
125
  function formatWasm(schema, documentFormattingParams) {
152
- const formattedSchema = import_chunk_Y7XBA7JY.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
126
+ const formattedSchema = import_chunk_MGIYZQLY.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
153
127
  return formattedSchema;
154
128
  }
155
129
  async function loadSchemaContext({
@@ -157,39 +131,37 @@ async function loadSchemaContext({
157
131
  schemaPathFromConfig,
158
132
  schemaEngineConfig,
159
133
  printLoadMessage = true,
160
- ignoreEnvVarErrors = false,
161
134
  allowNull = false,
162
135
  schemaPathArgumentName = "--schema",
163
136
  cwd = process.cwd()
164
137
  } = {}) {
165
138
  let schemaResult = null;
166
139
  if (allowNull) {
167
- schemaResult = await (0, import_chunk_EYVG6XQS.getSchemaWithPathOptional)(schemaPathFromArg, schemaPathFromConfig, {
140
+ schemaResult = await (0, import_chunk_OKVM3CW4.getSchemaWithPathOptional)(schemaPathFromArg, schemaPathFromConfig, {
168
141
  argumentName: schemaPathArgumentName,
169
142
  cwd
170
143
  });
171
144
  if (!schemaResult) return null;
172
145
  } else {
173
- schemaResult = await (0, import_chunk_EYVG6XQS.getSchemaWithPath)(schemaPathFromArg, schemaPathFromConfig, {
146
+ schemaResult = await (0, import_chunk_OKVM3CW4.getSchemaWithPath)(schemaPathFromArg, schemaPathFromConfig, {
174
147
  argumentName: schemaPathArgumentName,
175
148
  cwd
176
149
  });
177
150
  }
178
- return processSchemaResult({ schemaResult, schemaEngineConfig, printLoadMessage, ignoreEnvVarErrors, cwd });
151
+ return processSchemaResult({ schemaResult, schemaEngineConfig, printLoadMessage, cwd });
179
152
  }
180
153
  async function processSchemaResult({
181
154
  schemaResult,
182
155
  schemaEngineConfig,
183
156
  printLoadMessage = true,
184
- ignoreEnvVarErrors = false,
185
157
  cwd = process.cwd()
186
158
  }) {
187
159
  const loadedFromPathForLogMessages = import_path.default.relative(cwd, schemaResult.schemaPath);
188
160
  const schemaRootDir = schemaResult.schemaRootDir || cwd;
189
161
  if (printLoadMessage) {
190
- (0, import_chunk_EYVG6XQS.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
162
+ (0, import_chunk_OKVM3CW4.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
191
163
  }
192
- const configFromPsl = await (0, import_chunk_LFFCR67R.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
164
+ const configFromPsl = await (0, import_chunk_UR5IPQXA.getConfig)({ datamodel: schemaResult.schemas });
193
165
  const datasourceFromPsl = configFromPsl.datasources.at(0);
194
166
  const primaryDatasource = (0, import_chunk_XKZ6CBLA.z)(schemaEngineConfig).with({ engine: "classic" }, ({ datasource }) => {
195
167
  const { url, directUrl, shadowDatabaseUrl } = datasource;
@@ -222,7 +194,7 @@ function getPrimaryDatasourceDirectory(primaryDatasource) {
222
194
  }
223
195
  return null;
224
196
  }
225
- var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_BVJP43JS.require_p_map)());
197
+ var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_QSVWJ2S2.require_p_map)());
226
198
  var debug2 = (0, import_debug2.default)("prisma:getGenerators");
227
199
  async function getGenerators(options) {
228
200
  if (options.registry === void 0 && options.providerAliases !== void 0) {
@@ -247,28 +219,27 @@ async function getGenerators(options) {
247
219
  binaryPathsOverride,
248
220
  generatorNames = [],
249
221
  postinstall,
250
- noEngine,
251
222
  allowNoModels = true,
252
223
  typedSql
253
224
  } = options;
254
- const schemaContext = !options.schemaContext && schemaPath ? await loadSchemaContext({ schemaPathFromArg: schemaPath, ignoreEnvVarErrors: true }) : options.schemaContext;
225
+ const schemaContext = !options.schemaContext && schemaPath ? await loadSchemaContext({ schemaPathFromArg: schemaPath }) : options.schemaContext;
255
226
  if (!schemaContext) {
256
227
  throw new Error(`no schema provided for getGenerators`);
257
228
  }
258
229
  if (!schemaContext.primaryDatasource) {
259
- throw new Error(import_chunk_7QC5VORA.missingDatasource);
230
+ throw new Error(import_chunk_MYLPCGTT.missingDatasource);
260
231
  }
261
232
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
262
233
  const previewFeatures = (0, import_chunk_CRVLHWC5.extractPreviewFeatures)(schemaContext.generators);
263
- const dmmf = await (0, import_chunk_C7SAKLK2.getDMMF)({
234
+ const dmmf = await (0, import_chunk_DQV64JMK.getDMMF)({
264
235
  datamodel: schemaContext.schemaFiles,
265
236
  previewFeatures
266
237
  });
267
238
  if (dmmf.datamodel.models.length === 0 && !allowNoModels) {
268
239
  if (schemaContext.primaryDatasource.provider === "mongodb") {
269
- throw new Error(import_chunk_AX5N26KG.missingModelMessageMongoDB);
240
+ throw new Error(import_chunk_TGA7DC5A.missingModelMessageMongoDB);
270
241
  }
271
- throw new Error(import_chunk_AX5N26KG.missingModelMessage);
242
+ throw new Error(import_chunk_TGA7DC5A.missingModelMessage);
272
243
  }
273
244
  const generatorConfigs = filterGenerators(overrideGenerators || schemaContext.generators, generatorNames);
274
245
  await validateGenerators(generatorConfigs);
@@ -311,8 +282,7 @@ You need to define \`output\` in the generator block in the schema file.`
311
282
  fromEnvVar: null
312
283
  };
313
284
  }
314
- const datamodel = (0, import_chunk_LU7NT333.mergeSchemas)({ schemas: schemaContext.schemaFiles });
315
- const envPaths = await (0, import_chunk_46ABODUM.getEnvPaths)(schemaContext.schemaPath, { cwd: generatorConfig.output.value });
285
+ const datamodel = (0, import_chunk_7FBMZKZS.mergeSchemas)({ schemas: schemaContext.schemaFiles });
316
286
  const options2 = {
317
287
  datamodel,
318
288
  datasources: schemaContext.datasources,
@@ -324,9 +294,7 @@ You need to define \`output\` in the generator block in the schema file.`
324
294
  version: version2 || import_engines.enginesVersion,
325
295
  // this version makes no sense anymore and should be ignored
326
296
  postinstall,
327
- noEngine,
328
297
  allowNoModels,
329
- envPaths,
330
298
  typedSql
331
299
  };
332
300
  generatorInstance.setOptions(options2);
@@ -370,18 +338,16 @@ generator gen {
370
338
  }
371
339
  const generatorBinaryTargets = g.options?.generator?.binaryTargets;
372
340
  if (generatorBinaryTargets && generatorBinaryTargets.length > 0) {
373
- for (const binaryTarget2 of generatorBinaryTargets) {
374
- if (!neededVersions[neededVersion].binaryTargets.find((object) => object.value === binaryTarget2.value)) {
375
- neededVersions[neededVersion].binaryTargets.push(binaryTarget2);
341
+ for (const binaryTarget of generatorBinaryTargets) {
342
+ if (!neededVersions[neededVersion].binaryTargets.find((object) => object.value === binaryTarget.value)) {
343
+ neededVersions[neededVersion].binaryTargets.push(binaryTarget);
376
344
  }
377
345
  }
378
346
  }
379
347
  }
380
348
  }
381
- const queryEngineBinaryType = (0, import_engines.getCliQueryEngineBinaryType)();
382
- const queryEngineType = (0, import_chunk_RS2R7COT.binaryTypeToEngineType)(queryEngineBinaryType);
383
349
  debug2("neededVersions", JSON.stringify(neededVersions, null, 2));
384
- const { binaryPathsByVersion, binaryTarget } = await (0, import_chunk_F2OZV76L.getBinaryPathsByVersion)({
350
+ const { binaryPathsByVersion } = await (0, import_chunk_5MHUYAV3.getBinaryPathsByVersion)({
385
351
  neededVersions,
386
352
  // We're lazily computing the binary target here, to avoid printing the
387
353
  // `Prisma failed to detect the libssl/openssl version to use` warning
@@ -402,17 +368,6 @@ generator gen {
402
368
  const generatorBinaryPaths = (0, import_chunk_GXW4NTU2.pick)(binaryPaths ?? {}, generator.manifest.requiresEngines);
403
369
  debug2({ generatorBinaryPaths });
404
370
  generator.setBinaryPaths(generatorBinaryPaths);
405
- if (engineVersion !== version2 && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
406
- const customDmmf = await (0, import_chunk_C7SAKLK2.getDMMF)({
407
- datamodel: schemaContext.schemaFiles,
408
- previewFeatures
409
- });
410
- const options2 = { ...generator.options, dmmf: customDmmf };
411
- debug2("generator.manifest.prettyName", generator.manifest.prettyName);
412
- debug2("options", options2);
413
- debug2("options.generator.binaryTargets", options2.generator.binaryTargets);
414
- generator.setOptions(options2);
415
- }
416
371
  }
417
372
  }
418
373
  return generators;
@@ -437,17 +392,6 @@ var oldToNewBinaryTargetsMapping = {
437
392
  async function validateGenerators(generators) {
438
393
  const binaryTarget = await (0, import_get_platform.getBinaryTargetForCurrentPlatform)();
439
394
  for (const generator of generators) {
440
- if (generator.config.platforms) {
441
- throw new Error(
442
- `The \`platforms\` field on the generator definition is deprecated. Please rename it to \`binaryTargets\`.`
443
- );
444
- }
445
- if (generator.config.pinnedBinaryTargets) {
446
- throw new Error(
447
- `The \`pinnedBinaryTargets\` field on the generator definition is deprecated.
448
- Please use the PRISMA_QUERY_ENGINE_BINARY env var instead to pin the binary target.`
449
- );
450
- }
451
395
  if (generator.binaryTargets) {
452
396
  const binaryTargets2 = generator.binaryTargets && generator.binaryTargets.length > 0 ? generator.binaryTargets : [{ fromEnvVar: null, value: "native" }];
453
397
  const resolvedBinaryTargets = binaryTargets2.flatMap((object) => (0, import_chunk_IOIAK7V7.parseBinaryTargetsEnvValue)(object)).map((p) => p === "native" ? binaryTarget : p);
@@ -511,7 +455,7 @@ var forbiddenCmdWithDataProxyFlagMessage = (command) => `
511
455
  Using an Accelerate URL is not supported for this CLI command ${(0, import_chunk_PG5FDKSF.green)(`prisma ${command}`)} yet.
512
456
  Please use a direct connection to your database via the datasource \`directUrl\` setting.
513
457
 
514
- More information about this limitation: ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/accelerate-limitations")}
458
+ More information about this limitation: ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/accelerate-limitations")}
515
459
  `;
516
460
  function checkUnsupportedDataProxy({
517
461
  cmd,
@@ -524,7 +468,7 @@ function checkUnsupportedDataProxy({
524
468
  }
525
469
  }
526
470
  if (!schemaContext?.primaryDatasource) return;
527
- const url = (0, import_chunk_LFFCR67R.resolveUrl)((0, import_chunk_LFFCR67R.getEffectiveUrl)(schemaContext.primaryDatasource));
471
+ const url = (0, import_chunk_UR5IPQXA.resolveUrl)((0, import_chunk_UR5IPQXA.getEffectiveUrl)(schemaContext.primaryDatasource));
528
472
  if (url?.startsWith("prisma://")) {
529
473
  throw new Error(forbiddenCmdWithDataProxyFlagMessage(cmd));
530
474
  }
@@ -16,11 +16,11 @@ 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_PHFQSMQF_exports = {};
20
- __export(chunk_PHFQSMQF_exports, {
19
+ var chunk_VFZCLI5X_exports = {};
20
+ __export(chunk_VFZCLI5X_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_PHFQSMQF_exports);
24
- var import_chunk_FGU7IK4W = require("./chunk-FGU7IK4W.js");
25
- var packageJson = (0, import_chunk_FGU7IK4W.require_package)();
23
+ module.exports = __toCommonJS(chunk_VFZCLI5X_exports);
24
+ var import_chunk_B2BNIZB2 = require("./chunk-B2BNIZB2.js");
25
+ var packageJson = (0, import_chunk_B2BNIZB2.require_package)();
26
26
  var version = packageJson.version;
@@ -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_E4H6V3Z4_exports = {};
30
- __export(chunk_E4H6V3Z4_exports, {
29
+ var chunk_VHE2A7YV_exports = {};
30
+ __export(chunk_VHE2A7YV_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_E4H6V3Z4_exports);
35
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
- var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
34
+ module.exports = __toCommonJS(chunk_VHE2A7YV_exports);
35
+ var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
37
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
- var import_chunk_JTS4UPHJ = require("./chunk-JTS4UPHJ.js");
39
- var import_chunk_FHZ5QJLR = require("./chunk-FHZ5QJLR.js");
37
+ var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
+ var import_chunk_2Q43C56O = require("./chunk-2Q43C56O.js");
39
+ var import_chunk_3ZWEK4N6 = require("./chunk-3ZWEK4N6.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_JTS4UPHJ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_2Q43C56O.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "MergeSchemasError";
64
64
  }
65
65
  };
66
66
  function mergeSchemas(options) {
67
- const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "mergeSchemasWasm");
67
+ const debugErrorType = (0, import_chunk_WSZXPLJQ.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_FHZ5QJLR.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_3ZWEK4N6.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_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
107
+ return new MergeSchemasError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
108
108
  }).exhaustive();
109
109
  throw error;
110
110
  }
@@ -16,17 +16,17 @@ 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_UHI6VYFX_exports = {};
20
- __export(chunk_UHI6VYFX_exports, {
19
+ var chunk_WJKBKH3Y_exports = {};
20
+ __export(chunk_WJKBKH3Y_exports, {
21
21
  SchemaEngineExitCode: () => SchemaEngineExitCode,
22
22
  canConnectToDatabase: () => canConnectToDatabase,
23
23
  createDatabase: () => createDatabase,
24
24
  dropDatabase: () => dropDatabase,
25
25
  execaCommand: () => execaCommand
26
26
  });
27
- module.exports = __toCommonJS(chunk_UHI6VYFX_exports);
27
+ module.exports = __toCommonJS(chunk_WJKBKH3Y_exports);
28
28
  var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
29
- var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
29
+ var import_chunk_HNRMSI3R = require("./chunk-HNRMSI3R.js");
30
30
  var import_fetch_engine = require("@prisma/fetch-engine");
31
31
  var SchemaEngineExitCode = /* @__PURE__ */ ((SchemaEngineExitCode2) => {
32
32
  SchemaEngineExitCode2[SchemaEngineExitCode2["Success"] = 0] = "Success";
@@ -139,7 +139,7 @@ async function execaCommand({
139
139
  schemaEnginePath,
140
140
  engineCommandName
141
141
  }) {
142
- schemaEnginePath = schemaEnginePath || await (0, import_chunk_FYZCPL2Z.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
142
+ schemaEnginePath = schemaEnginePath || await (0, import_chunk_HNRMSI3R.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
143
143
  try {
144
144
  return await (0, import_chunk_JOIHHXR6.execa)(schemaEnginePath, ["cli", "--datasource", connectionString, engineCommandName], {
145
145
  cwd,
@@ -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_TZJROXB3_exports = {};
30
- __export(chunk_TZJROXB3_exports, {
29
+ var chunk_WSZXPLJQ_exports = {};
30
+ __export(chunk_WSZXPLJQ_exports, {
31
31
  createDebugErrorType: () => createDebugErrorType,
32
32
  createSchemaValidationError: () => createSchemaValidationError,
33
33
  parseQueryEngineError: () => parseQueryEngineError,
34
34
  unlinkTempDatamodelPath: () => unlinkTempDatamodelPath
35
35
  });
36
- module.exports = __toCommonJS(chunk_TZJROXB3_exports);
37
- var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
36
+ module.exports = __toCommonJS(chunk_WSZXPLJQ_exports);
38
37
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
+ var import_chunk_C47SCASR = require("./chunk-C47SCASR.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_PG5FDKSF = require("./chunk-PG5FDKSF.js");