@prisma/internals 6.6.0-dev.95 → 6.6.0-dev.96

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 (52) hide show
  1. package/dist/WasmSchemaEngineLoader.d.ts +5 -0
  2. package/dist/WasmSchemaEngineLoader.js +25 -0
  3. package/dist/{chunk-UTJGRVMG.js → chunk-2IP7H3BQ.js} +4 -4
  4. package/dist/{chunk-476AA5S2.js → chunk-2N3DM23P.js} +10 -7
  5. package/dist/{chunk-E3MM5NEK.js → chunk-52GUTJNP.js} +11 -11
  6. package/dist/{chunk-MXMZNJKV.js → chunk-53HG6S6N.js} +5 -5
  7. package/dist/{chunk-RWBAI4LA.js → chunk-7E7RFODI.js} +11 -11
  8. package/dist/{chunk-GWPT5KNP.js → chunk-CHVRY25M.js} +13 -13
  9. package/dist/{chunk-ADPXO7PG.js → chunk-HV2YHCZA.js} +5 -5
  10. package/dist/{chunk-YKMFYZPB.js → chunk-LAIBHSUR.js} +11 -11
  11. package/dist/{chunk-ECCKK4S5.js → chunk-LYJWD54R.js} +5 -5
  12. package/dist/{chunk-IRTBJKYB.js → chunk-MWWACG5B.js} +5 -5
  13. package/dist/{chunk-UEN7UHV4.js → chunk-MWX5U75S.js} +6 -4
  14. package/dist/{chunk-O3X5PEOU.js → chunk-NJY64IWD.js} +12 -12
  15. package/dist/{chunk-TWSSYOC7.js → chunk-NW6CPMEZ.js} +5 -3
  16. package/dist/{chunk-LKR4OOFJ.js → chunk-PIBOH27R.js} +5 -5
  17. package/dist/{chunk-FRNDDXVT.js → chunk-PIJETZFL.js} +26 -26
  18. package/dist/{chunk-N6H26BQE.js → chunk-QPVIK5RD.js} +5 -5
  19. package/dist/{chunk-OESCEI3R.js → chunk-SNGHTSMG.js} +13 -13
  20. package/dist/{chunk-WSZXPLJQ.js → chunk-TZJROXB3.js} +4 -4
  21. package/dist/{chunk-XF3D7LPL.js → chunk-WJ5AKKYG.js} +10 -7
  22. package/dist/chunk-WPX2HKUE.js +64 -0
  23. package/dist/{chunk-5NDGDHJR.js → chunk-X4HLMORZ.js} +26 -26
  24. package/dist/{chunk-AXYQWZXV.js → chunk-XU4R56XJ.js} +11 -11
  25. package/dist/{chunk-I24UZHV3.js → chunk-YOD76CAF.js} +12 -12
  26. package/dist/cli/checkUnsupportedDataProxy.js +25 -24
  27. package/dist/cli/getSchema.js +28 -27
  28. package/dist/cli/hashes.js +25 -24
  29. package/dist/cli/schemaContext.js +25 -24
  30. package/dist/engine-commands/errorHelpers.js +4 -4
  31. package/dist/engine-commands/formatSchema.js +24 -23
  32. package/dist/engine-commands/getConfig.js +13 -13
  33. package/dist/engine-commands/getDmmf.js +10 -10
  34. package/dist/engine-commands/getEngineVersion.js +1 -1
  35. package/dist/engine-commands/getEnginesMetaInfo.js +1 -1
  36. package/dist/engine-commands/index.js +33 -32
  37. package/dist/engine-commands/lintSchema.js +9 -9
  38. package/dist/engine-commands/mergeSchemas.js +10 -10
  39. package/dist/engine-commands/queryEngineCommons.js +6 -6
  40. package/dist/engine-commands/validate.js +10 -10
  41. package/dist/get-generators/getGenerators.js +27 -26
  42. package/dist/index.d.ts +2 -1
  43. package/dist/index.js +55 -51
  44. package/dist/migrateTypes.d.ts +1 -1
  45. package/dist/utils/getEnvPaths.js +24 -23
  46. package/dist/utils/getVersionFromPackageJson.js +3 -3
  47. package/dist/utils/handlePanic.js +1 -1
  48. package/dist/utils/loadEnvFile.js +24 -23
  49. package/dist/utils/tryLoadEnvs.js +6 -6
  50. package/dist/wasm.d.ts +3 -1
  51. package/dist/wasm.js +5 -4
  52. package/package.json +12 -10
@@ -0,0 +1,5 @@
1
+ import type { ErrorCapturingSqlDriverAdapterFactory } from '@prisma/driver-adapter-utils';
2
+ import type { SchemaEngine } from '@prisma/schema-engine-wasm';
3
+ export declare const wasmSchemaEngineLoader: {
4
+ loadSchemaEngine(adapter: ErrorCapturingSqlDriverAdapterFactory): Promise<SchemaEngine>;
5
+ };
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var WasmSchemaEngineLoader_exports = {};
20
+ __export(WasmSchemaEngineLoader_exports, {
21
+ wasmSchemaEngineLoader: () => import_chunk_WPX2HKUE.wasmSchemaEngineLoader
22
+ });
23
+ module.exports = __toCommonJS(WasmSchemaEngineLoader_exports);
24
+ var import_chunk_WPX2HKUE = require("./chunk-WPX2HKUE.js");
25
+ var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -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_UTJGRVMG_exports = {};
30
- __export(chunk_UTJGRVMG_exports, {
29
+ var chunk_2IP7H3BQ_exports = {};
30
+ __export(chunk_2IP7H3BQ_exports, {
31
31
  exists: () => exists,
32
32
  loadEnv: () => loadEnv,
33
33
  pathsEqual: () => pathsEqual,
34
34
  tryLoadEnvs: () => tryLoadEnvs
35
35
  });
36
- module.exports = __toCommonJS(chunk_UTJGRVMG_exports);
37
- var import_chunk_T2PM5TKT = require("./chunk-T2PM5TKT.js");
36
+ module.exports = __toCommonJS(chunk_2IP7H3BQ_exports);
38
37
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
38
+ var import_chunk_T2PM5TKT = require("./chunk-T2PM5TKT.js");
39
39
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
40
40
  var import_debug = __toESM(require("@prisma/debug"));
41
41
  var import_fs = __toESM(require("fs"));
@@ -26,22 +26,25 @@ 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_476AA5S2_exports = {};
30
- __export(chunk_476AA5S2_exports, {
29
+ var chunk_2N3DM23P_exports = {};
30
+ __export(chunk_2N3DM23P_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
+ schemaEngineWasmVersion: () => schemaEngineWasmVersion,
33
34
  wasm_exports: () => wasm_exports
34
35
  });
35
- module.exports = __toCommonJS(chunk_476AA5S2_exports);
36
- var import_chunk_UEN7UHV4 = require("./chunk-UEN7UHV4.js");
36
+ module.exports = __toCommonJS(chunk_2N3DM23P_exports);
37
+ var import_chunk_NW6CPMEZ = require("./chunk-NW6CPMEZ.js");
37
38
  var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
38
39
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
39
40
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
40
41
  var wasm_exports = {};
41
42
  (0, import_chunk_4VNS5WPM.__export)(wasm_exports, {
42
43
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
43
- prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
44
+ prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
45
+ schemaEngineWasmVersion: () => schemaEngineWasmVersion
44
46
  });
45
- var { dependencies } = (0, import_chunk_UEN7UHV4.require_package)();
46
- var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
47
47
  globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
48
+ var { dependencies } = (0, import_chunk_NW6CPMEZ.require_package)();
49
+ var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
50
+ 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_E3MM5NEK_exports = {};
30
- __export(chunk_E3MM5NEK_exports, {
29
+ var chunk_52GUTJNP_exports = {};
30
+ __export(chunk_52GUTJNP_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_E3MM5NEK_exports);
35
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
34
+ module.exports = __toCommonJS(chunk_52GUTJNP_exports);
35
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_ADPXO7PG = require("./chunk-ADPXO7PG.js");
38
- var import_chunk_476AA5S2 = require("./chunk-476AA5S2.js");
37
+ var import_chunk_PIBOH27R = require("./chunk-PIBOH27R.js");
38
+ var import_chunk_2N3DM23P = require("./chunk-2N3DM23P.js");
39
39
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
41
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -58,25 +58,25 @@ ${detailsHeader} ${message}`;
58
58
  }).exhaustive();
59
59
  const errorMessageWithContext = `${constructedErrorMessage}
60
60
  [Context: getDmmf]`;
61
- super((0, import_chunk_ADPXO7PG.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_PIBOH27R.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
62
  this.name = "GetDmmfError";
63
63
  }
64
64
  };
65
65
  async function getDMMF(options) {
66
- const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getDmmfWasm");
66
+ const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getDmmfWasm");
67
67
  debug(`Using getDmmf Wasm`);
68
68
  const dmmfPipeline = (0, import_function.pipe)(
69
69
  (0, import_chunk_5DBOS77Y.tryCatch)(
70
70
  () => {
71
71
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
72
72
  debug("Triggering a Rust panic...");
73
- import_chunk_476AA5S2.prismaSchemaWasm.debug_panic();
73
+ import_chunk_2N3DM23P.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_476AA5S2.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_2N3DM23P.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -124,7 +124,7 @@ async function getDMMF(options) {
124
124
  return panic;
125
125
  }
126
126
  const errorOutput = e.error.message;
127
- return new GetDmmfError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
127
+ return new GetDmmfError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
128
128
  }).with({ type: "parse-json" }, (e) => {
129
129
  debugErrorType(e);
130
130
  return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
@@ -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_MXMZNJKV_exports = {};
20
- __export(chunk_MXMZNJKV_exports, {
19
+ var chunk_53HG6S6N_exports = {};
20
+ __export(chunk_53HG6S6N_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_MXMZNJKV_exports);
28
- var import_chunk_476AA5S2 = require("./chunk-476AA5S2.js");
27
+ module.exports = __toCommonJS(chunk_53HG6S6N_exports);
28
+ var import_chunk_WJ5AKKYG = require("./chunk-WJ5AKKYG.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_476AA5S2.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_WJ5AKKYG.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -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_RWBAI4LA_exports = {};
30
- __export(chunk_RWBAI4LA_exports, {
29
+ var chunk_7E7RFODI_exports = {};
30
+ __export(chunk_7E7RFODI_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_RWBAI4LA_exports);
35
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
- var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
34
+ module.exports = __toCommonJS(chunk_7E7RFODI_exports);
35
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
37
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_ADPXO7PG = require("./chunk-ADPXO7PG.js");
39
- var import_chunk_476AA5S2 = require("./chunk-476AA5S2.js");
37
+ var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
+ var import_chunk_HV2YHCZA = require("./chunk-HV2YHCZA.js");
39
+ var import_chunk_WJ5AKKYG = require("./chunk-WJ5AKKYG.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_ADPXO7PG.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_HV2YHCZA.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "MergeSchemasError";
64
64
  }
65
65
  };
66
66
  function mergeSchemas(options) {
67
- const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "mergeSchemasWasm");
67
+ const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "mergeSchemasWasm");
68
68
  debug(`Using mergeSchemas Wasm`);
69
69
  const mergeSchemasEither = (0, import_function.pipe)(
70
70
  (0, import_chunk_5DBOS77Y.tryCatch)(
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
72
72
  const params = JSON.stringify({
73
73
  schema: options.schemas
74
74
  });
75
- return import_chunk_476AA5S2.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_WJ5AKKYG.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -104,7 +104,7 @@ function mergeSchemas(options) {
104
104
  return panic;
105
105
  }
106
106
  const errorOutput = e.error.message;
107
- return new MergeSchemasError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
107
+ return new MergeSchemasError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
108
108
  }).exhaustive();
109
109
  throw error;
110
110
  }
@@ -26,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_GWPT5KNP_exports = {};
30
- __export(chunk_GWPT5KNP_exports, {
29
+ var chunk_CHVRY25M_exports = {};
30
+ __export(chunk_CHVRY25M_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_GWPT5KNP_exports);
38
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
39
- var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
+ module.exports = __toCommonJS(chunk_CHVRY25M_exports);
38
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
40
39
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
41
- var import_chunk_ADPXO7PG = require("./chunk-ADPXO7PG.js");
42
- var import_chunk_476AA5S2 = require("./chunk-476AA5S2.js");
40
+ var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
41
+ var import_chunk_PIBOH27R = require("./chunk-PIBOH27R.js");
42
+ var import_chunk_2N3DM23P = require("./chunk-2N3DM23P.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_ADPXO7PG.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_PIBOH27R.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
68
  this.name = "GetConfigError";
69
69
  }
70
70
  };
@@ -82,14 +82,14 @@ function resolveUrl(envValue) {
82
82
  return urlFromValue ?? urlEnvVarValue;
83
83
  }
84
84
  async function getConfig(options) {
85
- const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getConfigWasm");
85
+ const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getConfigWasm");
86
86
  debug(`Using getConfig Wasm`);
87
87
  const configEither = (0, import_function.pipe)(
88
88
  (0, import_chunk_5DBOS77Y.tryCatch)(
89
89
  () => {
90
90
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
91
91
  debug("Triggering a Rust panic...");
92
- import_chunk_476AA5S2.prismaSchemaWasm.debug_panic();
92
+ import_chunk_2N3DM23P.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_476AA5S2.prismaSchemaWasm.get_config(params);
100
+ const data = import_chunk_2N3DM23P.prismaSchemaWasm.get_config(params);
101
101
  return data;
102
102
  },
103
103
  (e) => ({
@@ -156,12 +156,12 @@ async function getConfig(options) {
156
156
  return panic;
157
157
  }
158
158
  const errorOutput = e.error.message;
159
- return new GetConfigError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
159
+ return new GetConfigError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
160
160
  }).with({ type: "validation-error" }, (e) => {
161
161
  return new GetConfigError({
162
162
  _tag: "parsed",
163
163
  errorCode: SCHEMA_VALIDATION_ERROR_CODE,
164
- reason: (0, import_chunk_WSZXPLJQ.createSchemaValidationError)(e.reason),
164
+ reason: (0, import_chunk_TZJROXB3.createSchemaValidationError)(e.reason),
165
165
  message: formatErrors(e.error)
166
166
  });
167
167
  }).otherwise((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_ADPXO7PG_exports = {};
20
- __export(chunk_ADPXO7PG_exports, {
19
+ var chunk_HV2YHCZA_exports = {};
20
+ __export(chunk_HV2YHCZA_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_ADPXO7PG_exports);
24
- var import_chunk_ECCKK4S5 = require("./chunk-ECCKK4S5.js");
23
+ module.exports = __toCommonJS(chunk_HV2YHCZA_exports);
24
+ var import_chunk_QPVIK5RD = require("./chunk-QPVIK5RD.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_ECCKK4S5.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_QPVIK5RD.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -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_YKMFYZPB_exports = {};
30
- __export(chunk_YKMFYZPB_exports, {
29
+ var chunk_LAIBHSUR_exports = {};
30
+ __export(chunk_LAIBHSUR_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_YKMFYZPB_exports);
35
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
- var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
34
+ module.exports = __toCommonJS(chunk_LAIBHSUR_exports);
35
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
37
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_LKR4OOFJ = require("./chunk-LKR4OOFJ.js");
39
- var import_chunk_XF3D7LPL = require("./chunk-XF3D7LPL.js");
37
+ var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
+ var import_chunk_PIBOH27R = require("./chunk-PIBOH27R.js");
39
+ var import_chunk_2N3DM23P = require("./chunk-2N3DM23P.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_LKR4OOFJ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_PIBOH27R.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "MergeSchemasError";
64
64
  }
65
65
  };
66
66
  function mergeSchemas(options) {
67
- const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "mergeSchemasWasm");
67
+ const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "mergeSchemasWasm");
68
68
  debug(`Using mergeSchemas Wasm`);
69
69
  const mergeSchemasEither = (0, import_function.pipe)(
70
70
  (0, import_chunk_5DBOS77Y.tryCatch)(
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
72
72
  const params = JSON.stringify({
73
73
  schema: options.schemas
74
74
  });
75
- return import_chunk_XF3D7LPL.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_2N3DM23P.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -104,7 +104,7 @@ function mergeSchemas(options) {
104
104
  return panic;
105
105
  }
106
106
  const errorOutput = e.error.message;
107
- return new MergeSchemasError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
107
+ return new MergeSchemasError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
108
108
  }).exhaustive();
109
109
  throw error;
110
110
  }
@@ -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_ECCKK4S5_exports = {};
20
- __export(chunk_ECCKK4S5_exports, {
19
+ var chunk_LYJWD54R_exports = {};
20
+ __export(chunk_LYJWD54R_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_ECCKK4S5_exports);
24
- var import_chunk_UEN7UHV4 = require("./chunk-UEN7UHV4.js");
25
- var packageJson = (0, import_chunk_UEN7UHV4.require_package)();
23
+ module.exports = __toCommonJS(chunk_LYJWD54R_exports);
24
+ var import_chunk_NW6CPMEZ = require("./chunk-NW6CPMEZ.js");
25
+ var packageJson = (0, import_chunk_NW6CPMEZ.require_package)();
26
26
  var version = packageJson.version;
@@ -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_IRTBJKYB_exports = {};
20
- __export(chunk_IRTBJKYB_exports, {
19
+ var chunk_MWWACG5B_exports = {};
20
+ __export(chunk_MWWACG5B_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_IRTBJKYB_exports);
28
- var import_chunk_XF3D7LPL = require("./chunk-XF3D7LPL.js");
27
+ module.exports = __toCommonJS(chunk_MWWACG5B_exports);
28
+ var import_chunk_2N3DM23P = require("./chunk-2N3DM23P.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_XF3D7LPL.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_2N3DM23P.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -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_UEN7UHV4_exports = {};
20
- __export(chunk_UEN7UHV4_exports, {
19
+ var chunk_MWX5U75S_exports = {};
20
+ __export(chunk_MWX5U75S_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_UEN7UHV4_exports);
23
+ module.exports = __toCommonJS(chunk_MWX5U75S_exports);
24
24
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
25
25
  var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
26
26
  "package.json"(exports, module2) {
27
27
  module2.exports = {
28
28
  name: "@prisma/internals",
29
- version: "6.6.0-dev.95",
29
+ version: "6.6.0-dev.96",
30
30
  description: "This package is intended for Prisma's internal use",
31
31
  main: "dist/index.js",
32
32
  types: "dist/index.d.ts",
@@ -107,11 +107,13 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
107
107
  "@prisma/config": "workspace:*",
108
108
  "@prisma/debug": "workspace:*",
109
109
  "@prisma/dmmf": "workspace:*",
110
+ "@prisma/driver-adapter-utils": "workspace:*",
110
111
  "@prisma/engines": "workspace:*",
111
112
  "@prisma/fetch-engine": "workspace:*",
112
113
  "@prisma/generator": "workspace:*",
113
114
  "@prisma/generator-helper": "workspace:*",
114
115
  "@prisma/get-platform": "workspace:*",
116
+ "@prisma/schema-engine-wasm": "6.6.0-45.fbda4d61f6cc9c7361b803e72f3a0ffeb87db447",
115
117
  "@prisma/prisma-schema-wasm": "6.6.0-45.fbda4d61f6cc9c7361b803e72f3a0ffeb87db447",
116
118
  "@prisma/schema-files-loader": "workspace:*",
117
119
  arg: "5.0.2",
@@ -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_O3X5PEOU_exports = {};
30
- __export(chunk_O3X5PEOU_exports, {
29
+ var chunk_NJY64IWD_exports = {};
30
+ __export(chunk_NJY64IWD_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_O3X5PEOU_exports);
35
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
- var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
34
+ module.exports = __toCommonJS(chunk_NJY64IWD_exports);
35
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
37
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_LKR4OOFJ = require("./chunk-LKR4OOFJ.js");
39
- var import_chunk_XF3D7LPL = require("./chunk-XF3D7LPL.js");
37
+ var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
+ var import_chunk_HV2YHCZA = require("./chunk-HV2YHCZA.js");
39
+ var import_chunk_WJ5AKKYG = require("./chunk-WJ5AKKYG.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,25 +59,25 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: validate]`;
62
- super((0, import_chunk_LKR4OOFJ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_HV2YHCZA.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "ValidateError";
64
64
  }
65
65
  };
66
66
  function validate(options) {
67
- const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "validateWasm");
67
+ const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "validateWasm");
68
68
  debug(`Using validate Wasm`);
69
69
  const validateEither = (0, import_function.pipe)(
70
70
  (0, import_chunk_5DBOS77Y.tryCatch)(
71
71
  () => {
72
72
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
73
73
  debug("Triggering a Rust panic...");
74
- import_chunk_XF3D7LPL.prismaSchemaWasm.debug_panic();
74
+ import_chunk_WJ5AKKYG.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_XF3D7LPL.prismaSchemaWasm.validate(params);
80
+ import_chunk_WJ5AKKYG.prismaSchemaWasm.validate(params);
81
81
  },
82
82
  (e) => ({
83
83
  type: "wasm-error",
@@ -109,7 +109,7 @@ function validate(options) {
109
109
  return panic;
110
110
  }
111
111
  const errorOutput = e.error.message;
112
- return new ValidateError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
112
+ return new ValidateError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
113
113
  }).exhaustive();
114
114
  throw error;
115
115
  }
@@ -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_TWSSYOC7_exports = {};
20
- __export(chunk_TWSSYOC7_exports, {
19
+ var chunk_NW6CPMEZ_exports = {};
20
+ __export(chunk_NW6CPMEZ_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_TWSSYOC7_exports);
23
+ module.exports = __toCommonJS(chunk_NW6CPMEZ_exports);
24
24
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
25
25
  var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
26
26
  "package.json"(exports, module2) {
@@ -107,11 +107,13 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
107
107
  "@prisma/config": "workspace:*",
108
108
  "@prisma/debug": "workspace:*",
109
109
  "@prisma/dmmf": "workspace:*",
110
+ "@prisma/driver-adapter-utils": "workspace:*",
110
111
  "@prisma/engines": "workspace:*",
111
112
  "@prisma/fetch-engine": "workspace:*",
112
113
  "@prisma/generator": "workspace:*",
113
114
  "@prisma/generator-helper": "workspace:*",
114
115
  "@prisma/get-platform": "workspace:*",
116
+ "@prisma/schema-engine-wasm": "6.6.0-45.fbda4d61f6cc9c7361b803e72f3a0ffeb87db447",
115
117
  "@prisma/prisma-schema-wasm": "6.6.0-45.fbda4d61f6cc9c7361b803e72f3a0ffeb87db447",
116
118
  "@prisma/schema-files-loader": "workspace:*",
117
119
  arg: "5.0.2",
@@ -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_LKR4OOFJ_exports = {};
20
- __export(chunk_LKR4OOFJ_exports, {
19
+ var chunk_PIBOH27R_exports = {};
20
+ __export(chunk_PIBOH27R_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_LKR4OOFJ_exports);
24
- var import_chunk_N6H26BQE = require("./chunk-N6H26BQE.js");
23
+ module.exports = __toCommonJS(chunk_PIBOH27R_exports);
24
+ var import_chunk_LYJWD54R = require("./chunk-LYJWD54R.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_N6H26BQE.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_LYJWD54R.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;