@prisma/internals 6.17.0-dev.4 → 6.17.0-dev.6

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 (48) hide show
  1. package/dist/{chunk-4XEM4FKO.js → chunk-7ACMINTL.js} +5 -5
  2. package/dist/{chunk-J3Q3MTJ4.js → chunk-AJ5PXWMW.js} +8 -8
  3. package/dist/{chunk-HCIV233Z.js → chunk-BVJP43JS.js} +15 -5
  4. package/dist/{chunk-GAU2TOWU.js → chunk-EFS5Q4DP.js} +5 -5
  5. package/dist/{chunk-TN5X76G7.js → chunk-GMW36QQF.js} +5 -5
  6. package/dist/{chunk-RTSS2XR2.js → chunk-IKYC6K45.js} +19 -19
  7. package/dist/{chunk-ULE5JLJG.js → chunk-IRAVOSPK.js} +4 -4
  8. package/dist/{chunk-VZZORMB3.js → chunk-J7JXR4PH.js} +19 -19
  9. package/dist/{chunk-KXD4MNIC.js → chunk-JEQPVFUW.js} +5 -5
  10. package/dist/chunk-JOIHHXR6.js +2067 -0
  11. package/dist/{chunk-AVLYLDGE.js → chunk-KUC2SILY.js} +8 -8
  12. package/dist/{chunk-HJQMJE6G.js → chunk-MLDP6U27.js} +5 -5
  13. package/dist/{chunk-HCBMO3R2.js → chunk-NKKNAJFF.js} +5 -5
  14. package/dist/{chunk-PRGTOMXU.js → chunk-OAT7ZJED.js} +5 -7
  15. package/dist/{chunk-K5INLPVW.js → chunk-PE6MDHC6.js} +7 -7
  16. package/dist/{chunk-MRDUBOI6.js → chunk-PFLTG4SW.js} +8 -8
  17. package/dist/{chunk-N636KM4Y.js → chunk-QBWTIQZH.js} +5 -5
  18. package/dist/{chunk-DDWPA3QZ.js → chunk-QHKBGNWB.js} +8 -8
  19. package/dist/{chunk-7EWCT4H6.js → chunk-R23N6WNV.js} +5 -5
  20. package/dist/{chunk-OYGQMVPB.js → chunk-TO6USDND.js} +7 -7
  21. package/dist/{chunk-ONPT5QRX.js → chunk-UHI6VYFX.js} +5 -7
  22. package/dist/{chunk-PQARBUEW.js → chunk-UOPYKXM4.js} +8 -8
  23. package/dist/{chunk-OCVJF6KE.js → chunk-URKMLTPJ.js} +5 -5
  24. package/dist/{chunk-XH3GKWJM.js → chunk-Y7GAVPWZ.js} +5 -5
  25. package/dist/{chunk-TTFKFCNO.js → chunk-ZYDTUKOV.js} +8 -8
  26. package/dist/cli/checkUnsupportedDataProxy.js +17 -18
  27. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +17 -18
  28. package/dist/cli/schemaContext.js +17 -18
  29. package/dist/engine-commands/errorHelpers.js +4 -4
  30. package/dist/engine-commands/formatSchema.js +16 -17
  31. package/dist/engine-commands/getConfig.js +10 -10
  32. package/dist/engine-commands/getDmmf.js +7 -7
  33. package/dist/engine-commands/getEngineVersion.js +4 -5
  34. package/dist/engine-commands/getEnginesInfo.js +5 -6
  35. package/dist/engine-commands/index.js +28 -29
  36. package/dist/engine-commands/lintSchema.js +8 -8
  37. package/dist/engine-commands/mergeSchemas.js +7 -7
  38. package/dist/engine-commands/validate.js +7 -7
  39. package/dist/get-generators/getGenerators.js +19 -20
  40. package/dist/getPackedPackage.js +2 -3
  41. package/dist/index.js +44 -45
  42. package/dist/schemaEngineCommands.d.ts +1 -2
  43. package/dist/schemaEngineCommands.js +7 -8
  44. package/dist/utils/getVersionFromPackageJson.js +3 -3
  45. package/dist/wasm.js +5 -5
  46. package/package.json +12 -12
  47. package/dist/chunk-ETYWYJBX.js +0 -1908
  48. package/dist/chunk-MM4ARWWY.js +0 -35
@@ -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_AVLYLDGE_exports = {};
30
- __export(chunk_AVLYLDGE_exports, {
29
+ var chunk_KUC2SILY_exports = {};
30
+ __export(chunk_KUC2SILY_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_AVLYLDGE_exports);
34
+ module.exports = __toCommonJS(chunk_KUC2SILY_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_KXD4MNIC = require("./chunk-KXD4MNIC.js");
38
- var import_chunk_XH3GKWJM = require("./chunk-XH3GKWJM.js");
37
+ var import_chunk_JEQPVFUW = require("./chunk-JEQPVFUW.js");
38
+ var import_chunk_QBWTIQZH = require("./chunk-QBWTIQZH.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_KXD4MNIC.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_JEQPVFUW.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_XH3GKWJM.prismaSchemaWasm.debug_panic();
73
+ import_chunk_QBWTIQZH.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_XH3GKWJM.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_QBWTIQZH.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -16,20 +16,20 @@ 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_HJQMJE6G_exports = {};
20
- __export(chunk_HJQMJE6G_exports, {
19
+ var chunk_MLDP6U27_exports = {};
20
+ __export(chunk_MLDP6U27_exports, {
21
21
  getLintWarnings: () => getLintWarnings,
22
22
  getLintWarningsAsText: () => getLintWarningsAsText,
23
23
  handleLintPanic: () => handleLintPanic,
24
24
  lintSchema: () => lintSchema,
25
25
  warningToString: () => warningToString
26
26
  });
27
- module.exports = __toCommonJS(chunk_HJQMJE6G_exports);
28
- var import_chunk_N636KM4Y = require("./chunk-N636KM4Y.js");
27
+ module.exports = __toCommonJS(chunk_MLDP6U27_exports);
28
+ var import_chunk_Y7GAVPWZ = require("./chunk-Y7GAVPWZ.js");
29
29
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
30
30
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
31
31
  function lintSchema({ schemas }) {
32
- const lintResult = import_chunk_N636KM4Y.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_Y7GAVPWZ.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -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_HCBMO3R2_exports = {};
20
- __export(chunk_HCBMO3R2_exports, {
19
+ var chunk_NKKNAJFF_exports = {};
20
+ __export(chunk_NKKNAJFF_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_HCBMO3R2_exports);
24
- var import_chunk_7EWCT4H6 = require("./chunk-7EWCT4H6.js");
23
+ module.exports = __toCommonJS(chunk_NKKNAJFF_exports);
24
+ var import_chunk_URKMLTPJ = require("./chunk-URKMLTPJ.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_7EWCT4H6.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_URKMLTPJ.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -16,21 +16,19 @@ 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_PRGTOMXU_exports = {};
20
- __export(chunk_PRGTOMXU_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_PRGTOMXU_exports);
24
+ module.exports = __toCommonJS(chunk_OAT7ZJED_exports);
25
25
  var import_chunk_6TTRTZXU = require("./chunk-6TTRTZXU.js");
26
- var import_chunk_ETYWYJBX = require("./chunk-ETYWYJBX.js");
26
+ var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
27
27
  var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
28
28
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
29
- var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
30
29
  var import_engines = require("@prisma/engines");
31
30
  var import_fetch_engine = require("@prisma/fetch-engine");
32
31
  var import_get_platform = require("@prisma/get-platform");
33
- var import_execa = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_ETYWYJBX.require_execa)());
34
32
  async function getEngineVersion(enginePath, binaryName) {
35
33
  if (!binaryName) {
36
34
  binaryName = (0, import_engines.getCliQueryEngineBinaryType)();
@@ -42,7 +40,7 @@ async function getEngineVersion(enginePath, binaryName) {
42
40
  const QE = (0, import_chunk_6TTRTZXU.loadLibrary)(enginePath, platformInfo);
43
41
  return `${import_fetch_engine.BinaryType.QueryEngineLibrary} ${QE.version().commit}`;
44
42
  } else {
45
- const { stdout } = await (0, import_execa.default)(enginePath, ["--version"]);
43
+ const { stdout } = await (0, import_chunk_JOIHHXR6.execa)(enginePath, ["--version"]);
46
44
  return stdout;
47
45
  }
48
46
  }
@@ -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_K5INLPVW_exports = {};
30
- __export(chunk_K5INLPVW_exports, {
29
+ var chunk_PE6MDHC6_exports = {};
30
+ __export(chunk_PE6MDHC6_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_K5INLPVW_exports);
34
+ module.exports = __toCommonJS(chunk_PE6MDHC6_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_KXD4MNIC = require("./chunk-KXD4MNIC.js");
39
- var import_chunk_XH3GKWJM = require("./chunk-XH3GKWJM.js");
38
+ var import_chunk_NKKNAJFF = require("./chunk-NKKNAJFF.js");
39
+ var import_chunk_Y7GAVPWZ = require("./chunk-Y7GAVPWZ.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_KXD4MNIC.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_NKKNAJFF.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_XH3GKWJM.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_Y7GAVPWZ.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -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_MRDUBOI6_exports = {};
30
- __export(chunk_MRDUBOI6_exports, {
29
+ var chunk_PFLTG4SW_exports = {};
30
+ __export(chunk_PFLTG4SW_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_MRDUBOI6_exports);
34
+ module.exports = __toCommonJS(chunk_PFLTG4SW_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_KXD4MNIC = require("./chunk-KXD4MNIC.js");
39
- var import_chunk_XH3GKWJM = require("./chunk-XH3GKWJM.js");
38
+ var import_chunk_JEQPVFUW = require("./chunk-JEQPVFUW.js");
39
+ var import_chunk_QBWTIQZH = require("./chunk-QBWTIQZH.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_KXD4MNIC.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_JEQPVFUW.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_XH3GKWJM.prismaSchemaWasm.debug_panic();
74
+ import_chunk_QBWTIQZH.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_XH3GKWJM.prismaSchemaWasm.validate(params);
80
+ import_chunk_QBWTIQZH.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_N636KM4Y_exports = {};
30
- __export(chunk_N636KM4Y_exports, {
29
+ var chunk_QBWTIQZH_exports = {};
30
+ __export(chunk_QBWTIQZH_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_N636KM4Y_exports);
37
- var import_chunk_ULE5JLJG = require("./chunk-ULE5JLJG.js");
36
+ module.exports = __toCommonJS(chunk_QBWTIQZH_exports);
37
+ var import_chunk_IRAVOSPK = require("./chunk-IRAVOSPK.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_ULE5JLJG.require_package)();
49
+ var { dependencies } = (0, import_chunk_IRAVOSPK.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
@@ -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_DDWPA3QZ_exports = {};
30
- __export(chunk_DDWPA3QZ_exports, {
29
+ var chunk_QHKBGNWB_exports = {};
30
+ __export(chunk_QHKBGNWB_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_DDWPA3QZ_exports);
34
+ module.exports = __toCommonJS(chunk_QHKBGNWB_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_HCBMO3R2 = require("./chunk-HCBMO3R2.js");
38
- var import_chunk_N636KM4Y = require("./chunk-N636KM4Y.js");
37
+ var import_chunk_NKKNAJFF = require("./chunk-NKKNAJFF.js");
38
+ var import_chunk_Y7GAVPWZ = require("./chunk-Y7GAVPWZ.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_HCBMO3R2.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_NKKNAJFF.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_N636KM4Y.prismaSchemaWasm.debug_panic();
73
+ import_chunk_Y7GAVPWZ.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_N636KM4Y.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_Y7GAVPWZ.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -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_7EWCT4H6_exports = {};
20
- __export(chunk_7EWCT4H6_exports, {
19
+ var chunk_R23N6WNV_exports = {};
20
+ __export(chunk_R23N6WNV_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_7EWCT4H6_exports);
24
- var import_chunk_ULE5JLJG = require("./chunk-ULE5JLJG.js");
25
- var packageJson = (0, import_chunk_ULE5JLJG.require_package)();
23
+ module.exports = __toCommonJS(chunk_R23N6WNV_exports);
24
+ var import_chunk_IRAVOSPK = require("./chunk-IRAVOSPK.js");
25
+ var packageJson = (0, import_chunk_IRAVOSPK.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_OYGQMVPB_exports = {};
30
- __export(chunk_OYGQMVPB_exports, {
29
+ var chunk_TO6USDND_exports = {};
30
+ __export(chunk_TO6USDND_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_OYGQMVPB_exports);
34
+ module.exports = __toCommonJS(chunk_TO6USDND_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_HCBMO3R2 = require("./chunk-HCBMO3R2.js");
39
- var import_chunk_N636KM4Y = require("./chunk-N636KM4Y.js");
38
+ var import_chunk_JEQPVFUW = require("./chunk-JEQPVFUW.js");
39
+ var import_chunk_QBWTIQZH = require("./chunk-QBWTIQZH.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_HCBMO3R2.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_JEQPVFUW.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_N636KM4Y.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_QBWTIQZH.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -16,20 +16,18 @@ 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_ONPT5QRX_exports = {};
20
- __export(chunk_ONPT5QRX_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_ONPT5QRX_exports);
28
- var import_chunk_ETYWYJBX = require("./chunk-ETYWYJBX.js");
27
+ module.exports = __toCommonJS(chunk_UHI6VYFX_exports);
28
+ var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
29
29
  var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
30
- var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
31
30
  var import_fetch_engine = require("@prisma/fetch-engine");
32
- var import_execa = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_ETYWYJBX.require_execa)());
33
31
  var SchemaEngineExitCode = /* @__PURE__ */ ((SchemaEngineExitCode2) => {
34
32
  SchemaEngineExitCode2[SchemaEngineExitCode2["Success"] = 0] = "Success";
35
33
  SchemaEngineExitCode2[SchemaEngineExitCode2["Error"] = 1] = "Error";
@@ -143,7 +141,7 @@ async function execaCommand({
143
141
  }) {
144
142
  schemaEnginePath = schemaEnginePath || await (0, import_chunk_FYZCPL2Z.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
145
143
  try {
146
- return await (0, import_execa.default)(schemaEnginePath, ["cli", "--datasource", connectionString, engineCommandName], {
144
+ return await (0, import_chunk_JOIHHXR6.execa)(schemaEnginePath, ["cli", "--datasource", connectionString, engineCommandName], {
147
145
  cwd,
148
146
  env: {
149
147
  RUST_BACKTRACE: process.env.RUST_BACKTRACE ?? "1",
@@ -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_PQARBUEW_exports = {};
30
- __export(chunk_PQARBUEW_exports, {
29
+ var chunk_UOPYKXM4_exports = {};
30
+ __export(chunk_UOPYKXM4_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_PQARBUEW_exports);
37
+ module.exports = __toCommonJS(chunk_UOPYKXM4_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_HCBMO3R2 = require("./chunk-HCBMO3R2.js");
42
- var import_chunk_N636KM4Y = require("./chunk-N636KM4Y.js");
41
+ var import_chunk_JEQPVFUW = require("./chunk-JEQPVFUW.js");
42
+ var import_chunk_QBWTIQZH = require("./chunk-QBWTIQZH.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_HCBMO3R2.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_JEQPVFUW.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_N636KM4Y.prismaSchemaWasm.debug_panic();
92
+ import_chunk_QBWTIQZH.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_N636KM4Y.prismaSchemaWasm.get_config(params);
100
+ const data = import_chunk_QBWTIQZH.prismaSchemaWasm.get_config(params);
101
101
  return data;
102
102
  },
103
103
  (e) => ({
@@ -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_OCVJF6KE_exports = {};
20
- __export(chunk_OCVJF6KE_exports, {
19
+ var chunk_URKMLTPJ_exports = {};
20
+ __export(chunk_URKMLTPJ_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_OCVJF6KE_exports);
24
- var import_chunk_GAU2TOWU = require("./chunk-GAU2TOWU.js");
25
- var packageJson = (0, import_chunk_GAU2TOWU.require_package)();
23
+ module.exports = __toCommonJS(chunk_URKMLTPJ_exports);
24
+ var import_chunk_EFS5Q4DP = require("./chunk-EFS5Q4DP.js");
25
+ var packageJson = (0, import_chunk_EFS5Q4DP.require_package)();
26
26
  var version = packageJson.version;
@@ -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_XH3GKWJM_exports = {};
30
- __export(chunk_XH3GKWJM_exports, {
29
+ var chunk_Y7GAVPWZ_exports = {};
30
+ __export(chunk_Y7GAVPWZ_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_XH3GKWJM_exports);
37
- var import_chunk_GAU2TOWU = require("./chunk-GAU2TOWU.js");
36
+ module.exports = __toCommonJS(chunk_Y7GAVPWZ_exports);
37
+ var import_chunk_EFS5Q4DP = require("./chunk-EFS5Q4DP.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_GAU2TOWU.require_package)();
49
+ var { dependencies } = (0, import_chunk_EFS5Q4DP.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
@@ -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_TTFKFCNO_exports = {};
30
- __export(chunk_TTFKFCNO_exports, {
29
+ var chunk_ZYDTUKOV_exports = {};
30
+ __export(chunk_ZYDTUKOV_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_TTFKFCNO_exports);
37
+ module.exports = __toCommonJS(chunk_ZYDTUKOV_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_KXD4MNIC = require("./chunk-KXD4MNIC.js");
42
- var import_chunk_XH3GKWJM = require("./chunk-XH3GKWJM.js");
41
+ var import_chunk_NKKNAJFF = require("./chunk-NKKNAJFF.js");
42
+ var import_chunk_Y7GAVPWZ = require("./chunk-Y7GAVPWZ.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_KXD4MNIC.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_NKKNAJFF.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_XH3GKWJM.prismaSchemaWasm.debug_panic();
92
+ import_chunk_Y7GAVPWZ.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_XH3GKWJM.prismaSchemaWasm.get_config(params);
100
+ const data = import_chunk_Y7GAVPWZ.prismaSchemaWasm.get_config(params);
101
101
  return data;
102
102
  },
103
103
  (e) => ({
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var checkUnsupportedDataProxy_exports = {};
20
20
  __export(checkUnsupportedDataProxy_exports, {
21
- checkUnsupportedDataProxy: () => import_chunk_VZZORMB3.checkUnsupportedDataProxy,
22
- forbiddenCmdWithDataProxyFlagMessage: () => import_chunk_VZZORMB3.forbiddenCmdWithDataProxyFlagMessage
21
+ checkUnsupportedDataProxy: () => import_chunk_J7JXR4PH.checkUnsupportedDataProxy,
22
+ forbiddenCmdWithDataProxyFlagMessage: () => import_chunk_J7JXR4PH.forbiddenCmdWithDataProxyFlagMessage
23
23
  });
24
24
  module.exports = __toCommonJS(checkUnsupportedDataProxy_exports);
25
- var import_chunk_VZZORMB3 = require("../chunk-VZZORMB3.js");
25
+ var import_chunk_J7JXR4PH = require("../chunk-J7JXR4PH.js");
26
26
  var import_chunk_X3P4J7WW = require("../chunk-X3P4J7WW.js");
27
27
  var import_chunk_LRU47BGE = require("../chunk-LRU47BGE.js");
28
28
  var import_chunk_OSHZ4P3G = require("../chunk-OSHZ4P3G.js");
@@ -72,20 +72,20 @@ var import_chunk_NIWBAJZV = require("../chunk-NIWBAJZV.js");
72
72
  var import_chunk_FCYHZHVW = require("../chunk-FCYHZHVW.js");
73
73
  var import_chunk_H4NI2RIK = require("../chunk-H4NI2RIK.js");
74
74
  var import_chunk_ICFLO5JW = require("../chunk-ICFLO5JW.js");
75
- var import_chunk_MRDUBOI6 = require("../chunk-MRDUBOI6.js");
75
+ var import_chunk_AJ5PXWMW = require("../chunk-AJ5PXWMW.js");
76
76
  var import_chunk_TQCLUNM2 = require("../chunk-TQCLUNM2.js");
77
77
  var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
78
78
  var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
79
79
  var import_chunk_HPVMQFIY = require("../chunk-HPVMQFIY.js");
80
80
  var import_chunk_E23HYCQJ = require("../chunk-E23HYCQJ.js");
81
- var import_chunk_TTFKFCNO = require("../chunk-TTFKFCNO.js");
82
- var import_chunk_AVLYLDGE = require("../chunk-AVLYLDGE.js");
83
- var import_chunk_TN5X76G7 = require("../chunk-TN5X76G7.js");
84
- var import_chunk_PRGTOMXU = require("../chunk-PRGTOMXU.js");
81
+ var import_chunk_ZYDTUKOV = require("../chunk-ZYDTUKOV.js");
82
+ var import_chunk_QHKBGNWB = require("../chunk-QHKBGNWB.js");
83
+ var import_chunk_GMW36QQF = require("../chunk-GMW36QQF.js");
84
+ var import_chunk_OAT7ZJED = require("../chunk-OAT7ZJED.js");
85
85
  var import_chunk_6TTRTZXU = require("../chunk-6TTRTZXU.js");
86
86
  var import_chunk_DZYINYAA = require("../chunk-DZYINYAA.js");
87
- var import_chunk_4XEM4FKO = require("../chunk-4XEM4FKO.js");
88
- var import_chunk_K5INLPVW = require("../chunk-K5INLPVW.js");
87
+ var import_chunk_MLDP6U27 = require("../chunk-MLDP6U27.js");
88
+ var import_chunk_PE6MDHC6 = require("../chunk-PE6MDHC6.js");
89
89
  var import_chunk_TZJROXB3 = require("../chunk-TZJROXB3.js");
90
90
  var import_chunk_C47SCASR = require("../chunk-C47SCASR.js");
91
91
  var import_chunk_R6QH57HZ = require("../chunk-R6QH57HZ.js");
@@ -93,12 +93,12 @@ var import_chunk_J7ZPY2XA = require("../chunk-J7ZPY2XA.js");
93
93
  var import_chunk_4JCVHBYR = require("../chunk-4JCVHBYR.js");
94
94
  var import_chunk_EYVG6XQS = require("../chunk-EYVG6XQS.js");
95
95
  var import_chunk_D4VZUY3O = require("../chunk-D4VZUY3O.js");
96
- var import_chunk_KXD4MNIC = require("../chunk-KXD4MNIC.js");
97
- var import_chunk_OCVJF6KE = require("../chunk-OCVJF6KE.js");
96
+ var import_chunk_NKKNAJFF = require("../chunk-NKKNAJFF.js");
97
+ var import_chunk_URKMLTPJ = require("../chunk-URKMLTPJ.js");
98
98
  var import_chunk_QN6PSQY7 = require("../chunk-QN6PSQY7.js");
99
99
  var import_chunk_DTPFRZWV = require("../chunk-DTPFRZWV.js");
100
- var import_chunk_XH3GKWJM = require("../chunk-XH3GKWJM.js");
101
- var import_chunk_GAU2TOWU = require("../chunk-GAU2TOWU.js");
100
+ var import_chunk_Y7GAVPWZ = require("../chunk-Y7GAVPWZ.js");
101
+ var import_chunk_EFS5Q4DP = require("../chunk-EFS5Q4DP.js");
102
102
  var import_chunk_6JE6QGSJ = require("../chunk-6JE6QGSJ.js");
103
103
  var import_chunk_BCQZ6JQE = require("../chunk-BCQZ6JQE.js");
104
104
  var import_chunk_WFNB7VRA = require("../chunk-WFNB7VRA.js");
@@ -106,8 +106,8 @@ var import_chunk_XYCIH36R = require("../chunk-XYCIH36R.js");
106
106
  var import_chunk_ERSH2BQA = require("../chunk-ERSH2BQA.js");
107
107
  var import_chunk_ZJWZK45Z = require("../chunk-ZJWZK45Z.js");
108
108
  var import_chunk_2B26F5N3 = require("../chunk-2B26F5N3.js");
109
- var import_chunk_ONPT5QRX = require("../chunk-ONPT5QRX.js");
110
- var import_chunk_ETYWYJBX = require("../chunk-ETYWYJBX.js");
109
+ var import_chunk_UHI6VYFX = require("../chunk-UHI6VYFX.js");
110
+ var import_chunk_JOIHHXR6 = require("../chunk-JOIHHXR6.js");
111
111
  var import_chunk_FYZCPL2Z = require("../chunk-FYZCPL2Z.js");
112
112
  var import_chunk_M3GBKLGE = require("../chunk-M3GBKLGE.js");
113
113
  var import_chunk_IDINCQMN = require("../chunk-IDINCQMN.js");
@@ -127,10 +127,9 @@ var import_chunk_LPNBWFQ3 = require("../chunk-LPNBWFQ3.js");
127
127
  var import_chunk_T2PM5TKT = require("../chunk-T2PM5TKT.js");
128
128
  var import_chunk_5AI4FIZ3 = require("../chunk-5AI4FIZ3.js");
129
129
  var import_chunk_NVNI2SRU = require("../chunk-NVNI2SRU.js");
130
- var import_chunk_HCIV233Z = require("../chunk-HCIV233Z.js");
130
+ var import_chunk_BVJP43JS = require("../chunk-BVJP43JS.js");
131
131
  var import_chunk_KDP6C3CB = require("../chunk-KDP6C3CB.js");
132
132
  var import_chunk_JOIIWB3U = require("../chunk-JOIIWB3U.js");
133
133
  var import_chunk_UMM35VP5 = require("../chunk-UMM35VP5.js");
134
- var import_chunk_MM4ARWWY = require("../chunk-MM4ARWWY.js");
135
134
  var import_chunk_5VQNKCKW = require("../chunk-5VQNKCKW.js");
136
135
  var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");