@prisma/internals 6.19.0-integration-feat-remove-library-engine.4 → 6.19.0-integration-engines-6-19-0-31-next-6f525e2b254a97a9c547ae5f2b29c54a171f6b23.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 (108) hide show
  1. package/dist/{chunk-ZVTQSH5K.js → chunk-2QAF26LC.js} +5 -5
  2. package/dist/{chunk-Z2IPE4NA.js → chunk-3D5WFBNU.js} +66 -38
  3. package/dist/{chunk-EYGLXZ7L.js → chunk-3NZLOTZP.js} +8 -8
  4. package/dist/{chunk-6QTN4DDB.js → chunk-46ABODUM.js} +21 -6
  5. package/dist/{chunk-GJSFP4V4.js → chunk-4CGPN5SR.js} +9 -3
  6. package/dist/{chunk-GL7OANR6.js → chunk-4JCVHBYR.js} +5 -5
  7. package/dist/{chunk-KUU5CPWK.js → chunk-4YZH45V6.js} +5 -5
  8. package/dist/{chunk-MEOOYUIZ.js → chunk-5AI4FIZ3.js} +10 -10
  9. package/dist/{chunk-NVSVTFPX.js → chunk-5MVBCW2Z.js} +5 -5
  10. package/dist/chunk-6TTRTZXU.js +37 -0
  11. package/dist/{chunk-UB2X7DGZ.js → chunk-75BIJ5PX.js} +9 -9
  12. package/dist/{chunk-MUZJUPDX.js → chunk-77HI77IU.js} +7 -7
  13. package/dist/{chunk-H6PPJ5PX.js → chunk-7QC5VORA.js} +7 -7
  14. package/dist/{chunk-NNYJV66S.js → chunk-APZUC47O.js} +5 -5
  15. package/dist/{chunk-33K2EQQZ.js → chunk-AX5N26KG.js} +10 -10
  16. package/dist/{chunk-32LLAKF4.js → chunk-BVJP43JS.js} +784 -13
  17. package/dist/{chunk-IKYFTE43.js → chunk-BZFXOLVC.js} +8 -8
  18. package/dist/{chunk-E4GP3FX7.js → chunk-C2HOY5Z2.js} +66 -38
  19. package/dist/{chunk-IRWX4FCC.js → chunk-D4VDA2TZ.js} +6 -6
  20. package/dist/chunk-DZYINYAA.js +68 -0
  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-UMB3Y33W.js → chunk-FP7Y7C33.js} +7 -7
  26. package/dist/{chunk-HNRMSI3R.js → chunk-FYZCPL2Z.js} +8 -5
  27. package/dist/{chunk-22HIO2UL.js → chunk-GMW36QQF.js} +7 -7
  28. package/dist/{chunk-BUQN4WLU.js → chunk-HFFWZTVM.js} +9 -7
  29. package/dist/{chunk-CGLLQXZE.js → chunk-HHG4DGHC.js} +12 -11
  30. package/dist/{chunk-5W3BSMTH.js → chunk-HO5HRHFZ.js} +6 -3
  31. package/dist/{chunk-3WXUQZS7.js → chunk-I6WLABB2.js} +5 -14
  32. package/dist/{chunk-FF7OLLBP.js → chunk-IDINCQMN.js} +784 -12
  33. package/dist/{chunk-LGJMPZ7V.js → chunk-IE6Y4PMC.js} +5 -5
  34. package/dist/{chunk-2LOGW45F.js → chunk-JOIIWB3U.js} +33 -68
  35. package/dist/{chunk-XIVQSSTX.js → chunk-NE544QTB.js} +8 -8
  36. package/dist/{chunk-D7L3VT6R.js → chunk-NGOAZIZY.js} +8 -8
  37. package/dist/{chunk-KNNTV7IN.js → chunk-NVNI2SRU.js} +213 -687
  38. package/dist/{chunk-H5STSTVK.js → chunk-OAT7ZJED.js} +20 -7
  39. package/dist/{chunk-T3NMG3HB.js → chunk-OQH4MI73.js} +7 -7
  40. package/dist/{chunk-FURGECAD.js → chunk-PZMRR772.js} +6 -6
  41. package/dist/{chunk-L7QYUMS4.js → chunk-Q64XHKHF.js} +8 -8
  42. package/dist/{chunk-EBJBIVXN.js → chunk-RNYJUEDU.js} +5 -5
  43. package/dist/{chunk-5I4ERIIY.js → chunk-RS2R7COT.js} +9 -3
  44. package/dist/{chunk-KO44E4Z3.js → chunk-TBA7BNPC.js} +5 -5
  45. package/dist/{chunk-VNIE2AZB.js → chunk-TQCLUNM2.js} +4 -4
  46. package/dist/{chunk-MXAUURHG.js → chunk-TQFONRJP.js} +5 -5
  47. package/dist/{chunk-WJKBKH3Y.js → chunk-UHI6VYFX.js} +5 -5
  48. package/dist/{chunk-IU77SCOB.js → chunk-UQUWZJVN.js} +9 -9
  49. package/dist/{chunk-AOJ2N25Z.js → chunk-VFCLWZ3O.js} +8 -8
  50. package/dist/{chunk-BZV6PVWV.js → chunk-VSGMGR6A.js} +8 -8
  51. package/dist/{chunk-ARC7TW3L.js → chunk-WFNB7VRA.js} +14 -4
  52. package/dist/{chunk-TDQDOFYQ.js → chunk-XZBDRJF3.js} +5 -5
  53. package/dist/cli/checkUnsupportedDataProxy.js +54 -52
  54. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +54 -52
  55. package/dist/cli/getGeneratorSuccessMessage.js +3 -2
  56. package/dist/cli/getSchema.d.ts +15 -1
  57. package/dist/cli/getSchema.js +5 -4
  58. package/dist/cli/hashes.js +4 -4
  59. package/dist/cli/schemaContext.js +54 -52
  60. package/dist/client/getClientEngineType.d.ts +7 -0
  61. package/dist/client/getClientEngineType.js +26 -0
  62. package/dist/engine-commands/errorHelpers.js +4 -4
  63. package/dist/engine-commands/formatSchema.js +53 -51
  64. package/dist/engine-commands/getConfig.js +10 -10
  65. package/dist/engine-commands/getDmmf.js +7 -7
  66. package/dist/engine-commands/getEngineVersion.js +9 -6
  67. package/dist/engine-commands/getEnginesInfo.d.ts +1 -0
  68. package/dist/engine-commands/getEnginesInfo.js +9 -7
  69. package/dist/engine-commands/index.js +65 -63
  70. package/dist/engine-commands/lintSchema.js +8 -8
  71. package/dist/engine-commands/mergeSchemas.js +7 -7
  72. package/dist/engine-commands/validate.js +7 -7
  73. package/dist/errorReporting.js +6 -6
  74. package/dist/get-generators/getGenerators.d.ts +1 -0
  75. package/dist/get-generators/getGenerators.js +56 -54
  76. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  77. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  78. package/dist/get-generators/utils/getBinaryPathsByVersion.js +5 -6
  79. package/dist/getPackedPackage.js +3 -4
  80. package/dist/highlight/highlight.js +5 -5
  81. package/dist/index.d.ts +4 -1
  82. package/dist/index.js +109 -102
  83. package/dist/{multipart-parser-UV3WZSWW.js → multipart-parser-3AFJFP6K.js} +6 -6
  84. package/dist/resolveBinary.js +7 -8
  85. package/dist/schemaEngineCommands.js +8 -9
  86. package/dist/sendPanic.js +4 -4
  87. package/dist/utils/canPrompt.js +3 -3
  88. package/dist/utils/cloudflareD1.js +3 -3
  89. package/dist/utils/drawBox.js +2 -2
  90. package/dist/utils/fs-functional.js +10 -10
  91. package/dist/utils/fs-utils.js +8 -8
  92. package/dist/utils/getEnvPaths.d.ts +1 -1
  93. package/dist/utils/getEnvPaths.js +3 -2
  94. package/dist/utils/getVersionFromPackageJson.js +3 -3
  95. package/dist/utils/handleEngineLoadingErrors.d.ts +8 -0
  96. package/dist/utils/handleEngineLoadingErrors.js +27 -0
  97. package/dist/utils/handlePanic.js +8 -8
  98. package/dist/utils/link.js +2 -2
  99. package/dist/utils/load.d.ts +6 -0
  100. package/dist/utils/load.js +28 -0
  101. package/dist/utils/loadEnvFile.d.ts +1 -1
  102. package/dist/utils/loadEnvFile.js +4 -3
  103. package/dist/utils/missingDatasource.js +5 -5
  104. package/dist/utils/missingGeneratorMessage.js +7 -7
  105. package/dist/utils/serializeQueryEngineName.js +2 -2
  106. package/dist/wasm.js +5 -5
  107. package/package.json +15 -15
  108. package/dist/chunk-DYV47NUW.js +0 -796
@@ -16,20 +16,33 @@ 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_H5STSTVK_exports = {};
20
- __export(chunk_H5STSTVK_exports, {
19
+ var chunk_OAT7ZJED_exports = {};
20
+ __export(chunk_OAT7ZJED_exports, {
21
21
  getEngineVersion: () => getEngineVersion,
22
22
  safeGetEngineVersion: () => safeGetEngineVersion
23
23
  });
24
- module.exports = __toCommonJS(chunk_H5STSTVK_exports);
24
+ module.exports = __toCommonJS(chunk_OAT7ZJED_exports);
25
+ var import_chunk_6TTRTZXU = require("./chunk-6TTRTZXU.js");
25
26
  var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
26
- var import_chunk_HNRMSI3R = require("./chunk-HNRMSI3R.js");
27
+ var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
27
28
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
29
+ var import_engines = require("@prisma/engines");
28
30
  var import_fetch_engine = require("@prisma/fetch-engine");
31
+ var import_get_platform = require("@prisma/get-platform");
29
32
  async function getEngineVersion(enginePath, binaryName) {
30
- enginePath = await (0, import_chunk_HNRMSI3R.resolveBinary)(binaryName ?? import_fetch_engine.BinaryType.SchemaEngineBinary, enginePath);
31
- const { stdout } = await (0, import_chunk_JOIHHXR6.execa)(enginePath, ["--version"]);
32
- return stdout;
33
+ if (!binaryName) {
34
+ binaryName = (0, import_engines.getCliQueryEngineBinaryType)();
35
+ }
36
+ enginePath = await (0, import_chunk_FYZCPL2Z.resolveBinary)(binaryName, enginePath);
37
+ const platformInfo = await (0, import_get_platform.getPlatformInfo)();
38
+ if (binaryName === import_fetch_engine.BinaryType.QueryEngineLibrary) {
39
+ (0, import_get_platform.assertNodeAPISupported)();
40
+ const QE = (0, import_chunk_6TTRTZXU.loadLibrary)(enginePath, platformInfo);
41
+ return `${import_fetch_engine.BinaryType.QueryEngineLibrary} ${QE.version().commit}`;
42
+ } else {
43
+ const { stdout } = await (0, import_chunk_JOIHHXR6.execa)(enginePath, ["--version"]);
44
+ return stdout;
45
+ }
33
46
  }
34
47
  function safeGetEngineVersion(enginePath, binaryName) {
35
48
  return (0, import_chunk_5DBOS77Y.tryCatch2)(
@@ -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_T3NMG3HB_exports = {};
30
- __export(chunk_T3NMG3HB_exports, {
29
+ var chunk_OQH4MI73_exports = {};
30
+ __export(chunk_OQH4MI73_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_T3NMG3HB_exports);
34
+ module.exports = __toCommonJS(chunk_OQH4MI73_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_LGJMPZ7V = require("./chunk-LGJMPZ7V.js");
39
- var import_chunk_TDQDOFYQ = require("./chunk-TDQDOFYQ.js");
38
+ var import_chunk_RNYJUEDU = require("./chunk-RNYJUEDU.js");
39
+ var import_chunk_XZBDRJF3 = require("./chunk-XZBDRJF3.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_LGJMPZ7V.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_RNYJUEDU.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_TDQDOFYQ.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_XZBDRJF3.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -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_FURGECAD_exports = {};
20
- __export(chunk_FURGECAD_exports, {
19
+ var chunk_PZMRR772_exports = {};
20
+ __export(chunk_PZMRR772_exports, {
21
21
  loadEnvFile: () => loadEnvFile
22
22
  });
23
- module.exports = __toCommonJS(chunk_FURGECAD_exports);
24
- var import_chunk_6QTN4DDB = require("./chunk-6QTN4DDB.js");
23
+ module.exports = __toCommonJS(chunk_PZMRR772_exports);
24
+ var import_chunk_46ABODUM = require("./chunk-46ABODUM.js");
25
25
  var import_chunk_3FP46GUV = require("./chunk-3FP46GUV.js");
26
- function loadEnvFile({
26
+ async function loadEnvFile({
27
27
  schemaPath,
28
28
  config,
29
29
  printMessage = false
@@ -33,7 +33,7 @@ function loadEnvFile({
33
33
  `);
34
34
  return;
35
35
  }
36
- const envPaths = (0, import_chunk_6QTN4DDB.getEnvPaths)(schemaPath);
36
+ const envPaths = await (0, import_chunk_46ABODUM.getEnvPaths)(schemaPath);
37
37
  const envData = (0, import_chunk_3FP46GUV.tryLoadEnvs)(envPaths, { conflictCheck: "error" });
38
38
  if (printMessage && envData && envData.message) {
39
39
  process.stderr.write(envData.message + "\n");
@@ -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_L7QYUMS4_exports = {};
30
- __export(chunk_L7QYUMS4_exports, {
29
+ var chunk_Q64XHKHF_exports = {};
30
+ __export(chunk_Q64XHKHF_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_L7QYUMS4_exports);
34
+ module.exports = __toCommonJS(chunk_Q64XHKHF_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_LGJMPZ7V = require("./chunk-LGJMPZ7V.js");
38
- var import_chunk_TDQDOFYQ = require("./chunk-TDQDOFYQ.js");
37
+ var import_chunk_RNYJUEDU = require("./chunk-RNYJUEDU.js");
38
+ var import_chunk_XZBDRJF3 = require("./chunk-XZBDRJF3.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,7 +58,7 @@ ${detailsHeader} ${message}`;
58
58
  }).exhaustive();
59
59
  const errorMessageWithContext = `${constructedErrorMessage}
60
60
  [Context: getDmmf]`;
61
- super((0, import_chunk_LGJMPZ7V.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_RNYJUEDU.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
62
  this.name = "GetDmmfError";
63
63
  }
64
64
  };
@@ -70,13 +70,13 @@ async function getDMMF(options) {
70
70
  () => {
71
71
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
72
72
  debug("Triggering a Rust panic...");
73
- import_chunk_TDQDOFYQ.prismaSchemaWasm.debug_panic();
73
+ import_chunk_XZBDRJF3.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_TDQDOFYQ.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_XZBDRJF3.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -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_EBJBIVXN_exports = {};
20
- __export(chunk_EBJBIVXN_exports, {
19
+ var chunk_RNYJUEDU_exports = {};
20
+ __export(chunk_RNYJUEDU_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_EBJBIVXN_exports);
24
- var import_chunk_NVSVTFPX = require("./chunk-NVSVTFPX.js");
23
+ module.exports = __toCommonJS(chunk_RNYJUEDU_exports);
24
+ var import_chunk_5MVBCW2Z = require("./chunk-5MVBCW2Z.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_NVSVTFPX.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_5MVBCW2Z.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -16,15 +16,21 @@ 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_5I4ERIIY_exports = {};
20
- __export(chunk_5I4ERIIY_exports, {
19
+ var chunk_RS2R7COT_exports = {};
20
+ __export(chunk_RS2R7COT_exports, {
21
21
  binaryTypeToEngineType: () => binaryTypeToEngineType
22
22
  });
23
- module.exports = __toCommonJS(chunk_5I4ERIIY_exports);
23
+ module.exports = __toCommonJS(chunk_RS2R7COT_exports);
24
24
  var import_fetch_engine = require("@prisma/fetch-engine");
25
25
  function binaryTypeToEngineType(binaryType) {
26
26
  if (binaryType === import_fetch_engine.BinaryType.SchemaEngineBinary) {
27
27
  return "schemaEngine";
28
28
  }
29
+ if (binaryType === import_fetch_engine.BinaryType.QueryEngineLibrary) {
30
+ return "libqueryEngine";
31
+ }
32
+ if (binaryType === import_fetch_engine.BinaryType.QueryEngineBinary) {
33
+ return "queryEngine";
34
+ }
29
35
  throw new Error(`Could not convert binary type ${binaryType}`);
30
36
  }
@@ -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_KO44E4Z3_exports = {};
20
- __export(chunk_KO44E4Z3_exports, {
19
+ var chunk_TBA7BNPC_exports = {};
20
+ __export(chunk_TBA7BNPC_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_KO44E4Z3_exports);
24
- var import_chunk_EYGLXZ7L = require("./chunk-EYGLXZ7L.js");
25
- var packageJson = (0, import_chunk_EYGLXZ7L.require_package)();
23
+ module.exports = __toCommonJS(chunk_TBA7BNPC_exports);
24
+ var import_chunk_77HI77IU = require("./chunk-77HI77IU.js");
25
+ var packageJson = (0, import_chunk_77HI77IU.require_package)();
26
26
  var version = packageJson.version;
@@ -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_VNIE2AZB_exports = {};
20
- __export(chunk_VNIE2AZB_exports, {
19
+ var chunk_TQCLUNM2_exports = {};
20
+ __export(chunk_TQCLUNM2_exports, {
21
21
  highlightDatamodel: () => highlightDatamodel,
22
22
  highlightSql: () => highlightSql,
23
23
  highlightTS: () => highlightTS
24
24
  });
25
- module.exports = __toCommonJS(chunk_VNIE2AZB_exports);
26
- var import_chunk_CYAS6B5N = require("./chunk-CYAS6B5N.js");
25
+ module.exports = __toCommonJS(chunk_TQCLUNM2_exports);
27
26
  var import_chunk_OIVPX3BR = require("./chunk-OIVPX3BR.js");
27
+ var import_chunk_CYAS6B5N = require("./chunk-CYAS6B5N.js");
28
28
  var import_chunk_HPVMQFIY = require("./chunk-HPVMQFIY.js");
29
29
  function highlightDatamodel(str) {
30
30
  return highlight(str, import_chunk_OIVPX3BR.dml);
@@ -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_MXAUURHG_exports = {};
30
- __export(chunk_MXAUURHG_exports, {
29
+ var chunk_TQFONRJP_exports = {};
30
+ __export(chunk_TQFONRJP_exports, {
31
31
  createDirIfNotExists: () => createDirIfNotExists,
32
32
  fs_utils_exports: () => fs_utils_exports,
33
33
  getFilesInDir: () => getFilesInDir,
@@ -36,9 +36,9 @@ __export(chunk_MXAUURHG_exports, {
36
36
  removeEmptyDirs: () => removeEmptyDirs,
37
37
  writeFile: () => writeFile
38
38
  });
39
- module.exports = __toCommonJS(chunk_MXAUURHG_exports);
39
+ module.exports = __toCommonJS(chunk_TQFONRJP_exports);
40
40
  var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
41
- var import_chunk_2LOGW45F = require("./chunk-2LOGW45F.js");
41
+ var import_chunk_JOIIWB3U = require("./chunk-JOIIWB3U.js");
42
42
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
43
43
  var import_promises = __toESM(require("fs/promises"));
44
44
  var import_path = __toESM(require("path"));
@@ -51,7 +51,7 @@ var fs_utils_exports = {};
51
51
  removeEmptyDirs: () => removeEmptyDirs,
52
52
  writeFile: () => writeFile
53
53
  });
54
- var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_2LOGW45F.require_globby)());
54
+ var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_JOIIWB3U.require_globby)());
55
55
  function createDirIfNotExists(dir) {
56
56
  return import_promises.default.mkdir(dir, { recursive: true });
57
57
  }
@@ -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_WJKBKH3Y_exports = {};
20
- __export(chunk_WJKBKH3Y_exports, {
19
+ var chunk_UHI6VYFX_exports = {};
20
+ __export(chunk_UHI6VYFX_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_WJKBKH3Y_exports);
27
+ module.exports = __toCommonJS(chunk_UHI6VYFX_exports);
28
28
  var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
29
- var import_chunk_HNRMSI3R = require("./chunk-HNRMSI3R.js");
29
+ var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.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_HNRMSI3R.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
142
+ schemaEnginePath = schemaEnginePath || await (0, import_chunk_FYZCPL2Z.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,19 +26,19 @@ 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_IU77SCOB_exports = {};
30
- __export(chunk_IU77SCOB_exports, {
29
+ var chunk_UQUWZJVN_exports = {};
30
+ __export(chunk_UQUWZJVN_exports, {
31
31
  handlePanic: () => handlePanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_IU77SCOB_exports);
34
- var import_chunk_3WXUQZS7 = require("./chunk-3WXUQZS7.js");
33
+ module.exports = __toCommonJS(chunk_UQUWZJVN_exports);
34
+ var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
35
35
  var import_chunk_7IKUTPWQ = require("./chunk-7IKUTPWQ.js");
36
- var import_chunk_R3J2O23S = require("./chunk-R3J2O23S.js");
37
- var import_chunk_BUQN4WLU = require("./chunk-BUQN4WLU.js");
36
+ var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
37
+ var import_chunk_HFFWZTVM = require("./chunk-HFFWZTVM.js");
38
38
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
39
39
  var import_prompts = __toESM(require("prompts"));
40
40
  async function handlePanic(args) {
41
- if (!(0, import_chunk_R3J2O23S.canPrompt)()) {
41
+ if (!(0, import_chunk_FCYHZHVW.canPrompt)()) {
42
42
  throw args.error;
43
43
  }
44
44
  await panicDialog(args);
@@ -56,7 +56,7 @@ ${(0, import_chunk_PG5FDKSF.red)(errorMessage)}
56
56
 
57
57
  ${(0, import_chunk_PG5FDKSF.bold)("Please help us improve Prisma by submitting an error report.")}
58
58
  ${(0, import_chunk_PG5FDKSF.bold)("Error reports never contain personal or other sensitive information.")}
59
- ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/telemetry")}`)}
59
+ ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/telemetry")}`)}
60
60
  `);
61
61
  const { value: shouldSubmitReport } = await (0, import_prompts.default)({
62
62
  type: "select",
@@ -79,7 +79,7 @@ ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_3WXUQZS7.link)(
79
79
  if (shouldSubmitReport) {
80
80
  try {
81
81
  console.log("Submitting...");
82
- const reportId = await (0, import_chunk_BUQN4WLU.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
82
+ const reportId = await (0, import_chunk_HFFWZTVM.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
83
83
  console.log(`
84
84
  ${(0, import_chunk_PG5FDKSF.bold)(`We successfully received the error report id: ${reportId}`)}`);
85
85
  console.log(`
@@ -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_AOJ2N25Z_exports = {};
30
- __export(chunk_AOJ2N25Z_exports, {
29
+ var chunk_VFCLWZ3O_exports = {};
30
+ __export(chunk_VFCLWZ3O_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_AOJ2N25Z_exports);
34
+ module.exports = __toCommonJS(chunk_VFCLWZ3O_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_EBJBIVXN = require("./chunk-EBJBIVXN.js");
39
- var import_chunk_ZVTQSH5K = require("./chunk-ZVTQSH5K.js");
38
+ var import_chunk_IE6Y4PMC = require("./chunk-IE6Y4PMC.js");
39
+ var import_chunk_2QAF26LC = require("./chunk-2QAF26LC.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_EBJBIVXN.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_IE6Y4PMC.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_ZVTQSH5K.prismaSchemaWasm.debug_panic();
74
+ import_chunk_2QAF26LC.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_ZVTQSH5K.prismaSchemaWasm.validate(params);
80
+ import_chunk_2QAF26LC.prismaSchemaWasm.validate(params);
81
81
  },
82
82
  (e) => ({
83
83
  type: "wasm-error",
@@ -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_BZV6PVWV_exports = {};
30
- __export(chunk_BZV6PVWV_exports, {
29
+ var chunk_VSGMGR6A_exports = {};
30
+ __export(chunk_VSGMGR6A_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_BZV6PVWV_exports);
34
+ module.exports = __toCommonJS(chunk_VSGMGR6A_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_EBJBIVXN = require("./chunk-EBJBIVXN.js");
38
- var import_chunk_ZVTQSH5K = require("./chunk-ZVTQSH5K.js");
37
+ var import_chunk_IE6Y4PMC = require("./chunk-IE6Y4PMC.js");
38
+ var import_chunk_2QAF26LC = require("./chunk-2QAF26LC.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,7 +58,7 @@ ${detailsHeader} ${message}`;
58
58
  }).exhaustive();
59
59
  const errorMessageWithContext = `${constructedErrorMessage}
60
60
  [Context: getDmmf]`;
61
- super((0, import_chunk_EBJBIVXN.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_IE6Y4PMC.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
62
  this.name = "GetDmmfError";
63
63
  }
64
64
  };
@@ -70,13 +70,13 @@ async function getDMMF(options) {
70
70
  () => {
71
71
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
72
72
  debug("Triggering a Rust panic...");
73
- import_chunk_ZVTQSH5K.prismaSchemaWasm.debug_panic();
73
+ import_chunk_2QAF26LC.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_ZVTQSH5K.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_2QAF26LC.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -26,12 +26,13 @@ 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_ARC7TW3L_exports = {};
30
- __export(chunk_ARC7TW3L_exports, {
29
+ var chunk_WFNB7VRA_exports = {};
30
+ __export(chunk_WFNB7VRA_exports, {
31
31
  getGeneratorSuccessMessage: () => getGeneratorSuccessMessage
32
32
  });
33
- module.exports = __toCommonJS(chunk_ARC7TW3L_exports);
33
+ module.exports = __toCommonJS(chunk_WFNB7VRA_exports);
34
34
  var import_chunk_XYCIH36R = require("./chunk-XYCIH36R.js");
35
+ var import_chunk_ERSH2BQA = require("./chunk-ERSH2BQA.js");
35
36
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
36
37
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
37
38
  var import_path = __toESM(require("path"));
@@ -44,7 +45,16 @@ function getGeneratorSuccessMessage(generator, time) {
44
45
  function formatVersion(generator) {
45
46
  const version = generator.manifest?.version;
46
47
  if (generator.getProvider() === "prisma-client-js") {
47
- return `v${version ?? "?.?.?"}`;
48
+ const engineType = (0, import_chunk_ERSH2BQA.getClientEngineType)(generator.config);
49
+ let engineHint = "";
50
+ if (generator.options?.noEngine) {
51
+ engineHint = ", engine=none";
52
+ } else if (engineType === "binary") {
53
+ engineHint = ", engine=binary";
54
+ } else if (engineType === "library") {
55
+ engineHint = "";
56
+ }
57
+ return `v${version ?? "?.?.?"}${engineHint}`;
48
58
  }
49
59
  return version;
50
60
  }
@@ -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_TDQDOFYQ_exports = {};
30
- __export(chunk_TDQDOFYQ_exports, {
29
+ var chunk_XZBDRJF3_exports = {};
30
+ __export(chunk_XZBDRJF3_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  schemaEngineWasmVersion: () => schemaEngineWasmVersion,
34
34
  wasm_exports: () => wasm_exports
35
35
  });
36
- module.exports = __toCommonJS(chunk_TDQDOFYQ_exports);
37
- var import_chunk_EYGLXZ7L = require("./chunk-EYGLXZ7L.js");
36
+ module.exports = __toCommonJS(chunk_XZBDRJF3_exports);
37
+ var import_chunk_3NZLOTZP = require("./chunk-3NZLOTZP.js");
38
38
  var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
39
39
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
40
40
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -46,6 +46,6 @@ var wasm_exports = {};
46
46
  });
47
47
  var globalWithPanicRegistry = globalThis;
48
48
  globalWithPanicRegistry.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
49
- var { dependencies } = (0, import_chunk_EYGLXZ7L.require_package)();
49
+ var { dependencies } = (0, import_chunk_3NZLOTZP.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];