@prisma/internals 6.6.0-dev.34 → 6.6.0-dev.36

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 (65) hide show
  1. package/dist/{chunk-WD2267J3.js → chunk-2VT4AM4Y.js} +17 -17
  2. package/dist/{chunk-7MD6344A.js → chunk-5DBOS77Y.js} +3 -5
  3. package/dist/{chunk-KSJNY56L.js → chunk-5II75LYF.js} +22 -22
  4. package/dist/{chunk-JUXIW5NS.js → chunk-5MWCIDUY.js} +5 -5
  5. package/dist/{chunk-KTB2HCCO.js → chunk-7FH5JKIS.js} +7 -7
  6. package/dist/{chunk-JAWGW6LI.js → chunk-BXZXLEEH.js} +9 -9
  7. package/dist/{chunk-PSYMCJ4B.js → chunk-CMIKSBKL.js} +8 -8
  8. package/dist/{chunk-TSJICM5S.js → chunk-CRVLHWC5.js} +5 -5
  9. package/dist/{chunk-LOQLKDQE.js → chunk-EV7SJDE5.js} +5 -5
  10. package/dist/{chunk-6E4KJPDH.js → chunk-GH3DD2OM.js} +14 -14
  11. package/dist/{chunk-PIHBLNPJ.js → chunk-OSAQY3IQ.js} +4 -4
  12. package/dist/{chunk-JHQHVXIR.js → chunk-OSHZ4P3G.js} +6 -7
  13. package/dist/{chunk-MM4PIVNT.js → chunk-PAIGKNMY.js} +26 -26
  14. package/dist/{chunk-2TQR7BKX.js → chunk-Q6VZHKYE.js} +9 -9
  15. package/dist/{chunk-T2PFJSAD.js → chunk-RQK5KO77.js} +13 -13
  16. package/dist/{chunk-YBYBY7QI.js → chunk-U4WXIU7C.js} +5 -5
  17. package/dist/{chunk-EORSBI5P.js → chunk-UCI7OFQ4.js} +5 -5
  18. package/dist/{chunk-RAC7G3AO.js → chunk-UVLDTPOI.js} +5 -5
  19. package/dist/{chunk-X3CLVIIZ.js → chunk-VLBKBUPL.js} +35 -64
  20. package/dist/{chunk-RVU5FP25.js → chunk-VYFTEDQQ.js} +393 -415
  21. package/dist/{chunk-GNEFDTJE.js → chunk-WSCZQCHP.js} +391 -413
  22. package/dist/{chunk-AYSLETYV.js → chunk-WUO3S6J2.js} +38 -67
  23. package/dist/{chunk-MSQTBYIV.js → chunk-YYIAYJ4W.js} +5 -5
  24. package/dist/cli/checkUnsupportedDataProxy.d.ts +12 -17
  25. package/dist/cli/checkUnsupportedDataProxy.js +21 -22
  26. package/dist/cli/getSchema.js +25 -26
  27. package/dist/cli/hashes.js +21 -22
  28. package/dist/cli/schemaContext.d.ts +17 -2
  29. package/dist/cli/schemaContext.js +21 -21
  30. package/dist/engine-commands/errorHelpers.js +4 -4
  31. package/dist/engine-commands/formatSchema.js +20 -21
  32. package/dist/engine-commands/getConfig.d.ts +0 -4
  33. package/dist/engine-commands/getConfig.js +12 -12
  34. package/dist/engine-commands/getDmmf.d.ts +1 -5
  35. package/dist/engine-commands/getDmmf.js +9 -9
  36. package/dist/engine-commands/getEngineVersion.js +5 -5
  37. package/dist/engine-commands/getEnginesMetaInfo.js +7 -7
  38. package/dist/engine-commands/index.js +31 -32
  39. package/dist/engine-commands/lintSchema.js +8 -8
  40. package/dist/engine-commands/mergeSchemas.js +9 -9
  41. package/dist/engine-commands/queryEngineCommons.js +6 -6
  42. package/dist/engine-commands/validate.js +9 -9
  43. package/dist/get-generators/generatorResolvers/generatorResolvers.js +20 -21
  44. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +20 -21
  45. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +21 -22
  46. package/dist/get-generators/getGenerators.d.ts +7 -3
  47. package/dist/get-generators/getGenerators.js +23 -24
  48. package/dist/index.d.ts +1 -1
  49. package/dist/index.js +62 -62
  50. package/dist/resolveBinary.js +7 -7
  51. package/dist/schemaEngineCommands.js +8 -8
  52. package/dist/sendPanic.js +20 -21
  53. package/dist/utils/extractPreviewFeatures.d.ts +2 -2
  54. package/dist/utils/extractPreviewFeatures.js +2 -2
  55. package/dist/utils/getEnvPaths.js +20 -21
  56. package/dist/utils/getVersionFromPackageJson.js +3 -3
  57. package/dist/utils/handlePanic.js +20 -21
  58. package/dist/utils/loadEnvFile.js +20 -21
  59. package/dist/utils/toSchemasContainer.d.ts +2 -3
  60. package/dist/utils/toSchemasContainer.js +3 -4
  61. package/dist/wasm.js +4 -4
  62. package/package.json +8 -8
  63. package/dist/chunk-IPKE37QC.js +0 -25
  64. package/dist/get-generators/utils/check-feature-flags/checkFeatureFlags.d.ts +0 -8
  65. package/dist/get-generators/utils/check-feature-flags/checkFeatureFlags.js +0 -25
@@ -26,24 +26,24 @@ 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_WD2267J3_exports = {};
30
- __export(chunk_WD2267J3_exports, {
29
+ var chunk_2VT4AM4Y_exports = {};
30
+ __export(chunk_2VT4AM4Y_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_WD2267J3_exports);
37
+ module.exports = __toCommonJS(chunk_2VT4AM4Y_exports);
38
38
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
39
- var import_chunk_PSYMCJ4B = require("./chunk-PSYMCJ4B.js");
39
+ var import_chunk_CMIKSBKL = require("./chunk-CMIKSBKL.js");
40
40
  var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
41
41
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
42
42
  var import_chunk_QKPV6M3S = require("./chunk-QKPV6M3S.js");
43
43
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
44
44
  var import_chunk_R7U45FIQ = require("./chunk-R7U45FIQ.js");
45
45
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
46
- var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
46
+ var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
47
47
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
48
48
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
49
49
  var import_debug = __toESM(require("@prisma/debug"));
@@ -83,10 +83,10 @@ function resolveUrl(envValue) {
83
83
  return urlFromValue ?? urlEnvVarValue;
84
84
  }
85
85
  async function getConfig(options) {
86
- const debugErrorType = (0, import_chunk_PSYMCJ4B.createDebugErrorType)(debug, "getConfigWasm");
86
+ const debugErrorType = (0, import_chunk_CMIKSBKL.createDebugErrorType)(debug, "getConfigWasm");
87
87
  debug(`Using getConfig Wasm`);
88
88
  const configEither = (0, import_function.pipe)(
89
- (0, import_chunk_7MD6344A.tryCatch)(
89
+ (0, import_chunk_5DBOS77Y.tryCatch)(
90
90
  () => {
91
91
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
92
92
  debug("Triggering a Rust panic...");
@@ -107,11 +107,11 @@ async function getConfig(options) {
107
107
  error: e
108
108
  })
109
109
  ),
110
- (0, import_chunk_7MD6344A.map)((result) => ({ result })),
111
- (0, import_chunk_7MD6344A.chainW)(
110
+ (0, import_chunk_5DBOS77Y.map)((result) => ({ result })),
111
+ (0, import_chunk_5DBOS77Y.chainW)(
112
112
  ({ result }) => (
113
113
  // NOTE: this should never fail, as we expect returned values to be valid JSON-serializable strings
114
- (0, import_chunk_7MD6344A.tryCatch)(
114
+ (0, import_chunk_5DBOS77Y.tryCatch)(
115
115
  () => JSON.parse(result),
116
116
  (e) => ({
117
117
  type: "parse-json",
@@ -121,18 +121,18 @@ async function getConfig(options) {
121
121
  )
122
122
  )
123
123
  ),
124
- (0, import_chunk_7MD6344A.chainW)((response) => {
124
+ (0, import_chunk_5DBOS77Y.chainW)((response) => {
125
125
  if (response.errors.length > 0) {
126
- return (0, import_chunk_7MD6344A.left)({
126
+ return (0, import_chunk_5DBOS77Y.left)({
127
127
  type: "validation-error",
128
128
  reason: "(get-config wasm)",
129
129
  error: response.errors
130
130
  });
131
131
  }
132
- return (0, import_chunk_7MD6344A.right)(response.config);
132
+ return (0, import_chunk_5DBOS77Y.right)(response.config);
133
133
  })
134
134
  );
135
- if ((0, import_chunk_7MD6344A.isRight)(configEither)) {
135
+ if ((0, import_chunk_5DBOS77Y.isRight)(configEither)) {
136
136
  debug("config data retrieved without errors in getConfig Wasm");
137
137
  const { right: data } = configEither;
138
138
  for (const generator of data.generators) {
@@ -153,19 +153,19 @@ async function getConfig(options) {
153
153
  "@prisma/prisma-schema-wasm get_config",
154
154
  "FMT_CLI",
155
155
  /* schemaPath */
156
- options.prismaPath,
156
+ void 0,
157
157
  /* schema */
158
158
  (0, import_chunk_YRBRUREX.toMultipleSchemas)(options.datamodel)
159
159
  );
160
160
  return panic;
161
161
  }
162
162
  const errorOutput = e.error.message;
163
- return new GetConfigError((0, import_chunk_PSYMCJ4B.parseQueryEngineError)({ errorOutput, reason: e.reason }));
163
+ return new GetConfigError((0, import_chunk_CMIKSBKL.parseQueryEngineError)({ errorOutput, reason: e.reason }));
164
164
  }).with({ type: "validation-error" }, (e) => {
165
165
  return new GetConfigError({
166
166
  _tag: "parsed",
167
167
  errorCode: SCHEMA_VALIDATION_ERROR_CODE,
168
- reason: (0, import_chunk_PSYMCJ4B.createSchemaValidationError)(e.reason),
168
+ reason: (0, import_chunk_CMIKSBKL.createSchemaValidationError)(e.reason),
169
169
  message: formatErrors(e.error)
170
170
  });
171
171
  }).otherwise((e) => {
@@ -16,13 +16,12 @@ 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_7MD6344A_exports = {};
20
- __export(chunk_7MD6344A_exports, {
19
+ var chunk_5DBOS77Y_exports = {};
20
+ __export(chunk_5DBOS77Y_exports, {
21
21
  as: () => as,
22
22
  asUnit: () => asUnit,
23
23
  chain: () => chain,
24
24
  chainW: () => chainW,
25
- chainW2: () => chainW2,
26
25
  dual: () => dual,
27
26
  fromEither: () => fromEither,
28
27
  getOrElseW: () => getOrElseW,
@@ -41,7 +40,7 @@ __export(chunk_7MD6344A_exports, {
41
40
  tryCatch: () => tryCatch,
42
41
  tryCatch2: () => tryCatch2
43
42
  });
44
- module.exports = __toCommonJS(chunk_7MD6344A_exports);
43
+ module.exports = __toCommonJS(chunk_5DBOS77Y_exports);
45
44
  var __spreadArray = function(to, from, pack) {
46
45
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
47
46
  if (ar || !(i in from)) {
@@ -608,4 +607,3 @@ var _FromIO2 = {
608
607
  fromIO: FromIO2.fromIO
609
608
  };
610
609
  var chain = flatMap4;
611
- var chainW2 = flatMap4;
@@ -26,24 +26,24 @@ 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_KSJNY56L_exports = {};
30
- __export(chunk_KSJNY56L_exports, {
29
+ var chunk_5II75LYF_exports = {};
30
+ __export(chunk_5II75LYF_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_KSJNY56L_exports);
37
+ module.exports = __toCommonJS(chunk_5II75LYF_exports);
38
38
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
39
- var import_chunk_PSYMCJ4B = require("./chunk-PSYMCJ4B.js");
39
+ var import_chunk_CMIKSBKL = require("./chunk-CMIKSBKL.js");
40
40
  var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
41
41
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
42
- var import_chunk_JUXIW5NS = require("./chunk-JUXIW5NS.js");
42
+ var import_chunk_5MWCIDUY = require("./chunk-5MWCIDUY.js");
43
43
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
44
- var import_chunk_RAC7G3AO = require("./chunk-RAC7G3AO.js");
44
+ var import_chunk_UVLDTPOI = require("./chunk-UVLDTPOI.js");
45
45
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
46
- var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
46
+ var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
47
47
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
48
48
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
49
49
  var import_debug = __toESM(require("@prisma/debug"));
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
65
65
  }).exhaustive();
66
66
  const errorMessageWithContext = `${constructedErrorMessage}
67
67
  [Context: getConfig]`;
68
- super((0, import_chunk_JUXIW5NS.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
+ super((0, import_chunk_5MWCIDUY.addVersionDetailsToErrorMessage)(errorMessageWithContext));
69
69
  this.name = "GetConfigError";
70
70
  }
71
71
  };
@@ -83,14 +83,14 @@ function resolveUrl(envValue) {
83
83
  return urlFromValue ?? urlEnvVarValue;
84
84
  }
85
85
  async function getConfig(options) {
86
- const debugErrorType = (0, import_chunk_PSYMCJ4B.createDebugErrorType)(debug, "getConfigWasm");
86
+ const debugErrorType = (0, import_chunk_CMIKSBKL.createDebugErrorType)(debug, "getConfigWasm");
87
87
  debug(`Using getConfig Wasm`);
88
88
  const configEither = (0, import_function.pipe)(
89
- (0, import_chunk_7MD6344A.tryCatch)(
89
+ (0, import_chunk_5DBOS77Y.tryCatch)(
90
90
  () => {
91
91
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
92
92
  debug("Triggering a Rust panic...");
93
- import_chunk_RAC7G3AO.prismaSchemaWasm.debug_panic();
93
+ import_chunk_UVLDTPOI.prismaSchemaWasm.debug_panic();
94
94
  }
95
95
  const params = JSON.stringify({
96
96
  prismaSchema: options.datamodel,
@@ -98,7 +98,7 @@ async function getConfig(options) {
98
98
  ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
99
99
  env: process.env
100
100
  });
101
- const data = import_chunk_RAC7G3AO.prismaSchemaWasm.get_config(params);
101
+ const data = import_chunk_UVLDTPOI.prismaSchemaWasm.get_config(params);
102
102
  return data;
103
103
  },
104
104
  (e) => ({
@@ -107,11 +107,11 @@ async function getConfig(options) {
107
107
  error: e
108
108
  })
109
109
  ),
110
- (0, import_chunk_7MD6344A.map)((result) => ({ result })),
111
- (0, import_chunk_7MD6344A.chainW)(
110
+ (0, import_chunk_5DBOS77Y.map)((result) => ({ result })),
111
+ (0, import_chunk_5DBOS77Y.chainW)(
112
112
  ({ result }) => (
113
113
  // NOTE: this should never fail, as we expect returned values to be valid JSON-serializable strings
114
- (0, import_chunk_7MD6344A.tryCatch)(
114
+ (0, import_chunk_5DBOS77Y.tryCatch)(
115
115
  () => JSON.parse(result),
116
116
  (e) => ({
117
117
  type: "parse-json",
@@ -121,18 +121,18 @@ async function getConfig(options) {
121
121
  )
122
122
  )
123
123
  ),
124
- (0, import_chunk_7MD6344A.chainW)((response) => {
124
+ (0, import_chunk_5DBOS77Y.chainW)((response) => {
125
125
  if (response.errors.length > 0) {
126
- return (0, import_chunk_7MD6344A.left)({
126
+ return (0, import_chunk_5DBOS77Y.left)({
127
127
  type: "validation-error",
128
128
  reason: "(get-config wasm)",
129
129
  error: response.errors
130
130
  });
131
131
  }
132
- return (0, import_chunk_7MD6344A.right)(response.config);
132
+ return (0, import_chunk_5DBOS77Y.right)(response.config);
133
133
  })
134
134
  );
135
- if ((0, import_chunk_7MD6344A.isRight)(configEither)) {
135
+ if ((0, import_chunk_5DBOS77Y.isRight)(configEither)) {
136
136
  debug("config data retrieved without errors in getConfig Wasm");
137
137
  const { right: data } = configEither;
138
138
  for (const generator of data.generators) {
@@ -153,19 +153,19 @@ async function getConfig(options) {
153
153
  "@prisma/prisma-schema-wasm get_config",
154
154
  "FMT_CLI",
155
155
  /* schemaPath */
156
- options.prismaPath,
156
+ void 0,
157
157
  /* schema */
158
158
  (0, import_chunk_YRBRUREX.toMultipleSchemas)(options.datamodel)
159
159
  );
160
160
  return panic;
161
161
  }
162
162
  const errorOutput = e.error.message;
163
- return new GetConfigError((0, import_chunk_PSYMCJ4B.parseQueryEngineError)({ errorOutput, reason: e.reason }));
163
+ return new GetConfigError((0, import_chunk_CMIKSBKL.parseQueryEngineError)({ errorOutput, reason: e.reason }));
164
164
  }).with({ type: "validation-error" }, (e) => {
165
165
  return new GetConfigError({
166
166
  _tag: "parsed",
167
167
  errorCode: SCHEMA_VALIDATION_ERROR_CODE,
168
- reason: (0, import_chunk_PSYMCJ4B.createSchemaValidationError)(e.reason),
168
+ reason: (0, import_chunk_CMIKSBKL.createSchemaValidationError)(e.reason),
169
169
  message: formatErrors(e.error)
170
170
  });
171
171
  }).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_JUXIW5NS_exports = {};
20
- __export(chunk_JUXIW5NS_exports, {
19
+ var chunk_5MWCIDUY_exports = {};
20
+ __export(chunk_5MWCIDUY_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_JUXIW5NS_exports);
24
- var import_chunk_MSQTBYIV = require("./chunk-MSQTBYIV.js");
23
+ module.exports = __toCommonJS(chunk_5MWCIDUY_exports);
24
+ var import_chunk_YYIAYJ4W = require("./chunk-YYIAYJ4W.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_MSQTBYIV.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_YYIAYJ4W.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -16,16 +16,16 @@ 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_KTB2HCCO_exports = {};
20
- __export(chunk_KTB2HCCO_exports, {
19
+ var chunk_7FH5JKIS_exports = {};
20
+ __export(chunk_7FH5JKIS_exports, {
21
21
  getEngineVersion: () => getEngineVersion,
22
22
  safeGetEngineVersion: () => safeGetEngineVersion
23
23
  });
24
- module.exports = __toCommonJS(chunk_KTB2HCCO_exports);
24
+ module.exports = __toCommonJS(chunk_7FH5JKIS_exports);
25
25
  var import_chunk_LSYWDURQ = require("./chunk-LSYWDURQ.js");
26
26
  var import_chunk_2WR3PY2L = require("./chunk-2WR3PY2L.js");
27
- var import_chunk_YBYBY7QI = require("./chunk-YBYBY7QI.js");
28
- var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
27
+ var import_chunk_U4WXIU7C = require("./chunk-U4WXIU7C.js");
28
+ var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
29
29
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
30
30
  var import_engines = require("@prisma/engines");
31
31
  var import_fetch_engine = require("@prisma/fetch-engine");
@@ -35,7 +35,7 @@ async function getEngineVersion(enginePath, binaryName) {
35
35
  if (!binaryName) {
36
36
  binaryName = (0, import_engines.getCliQueryEngineBinaryType)();
37
37
  }
38
- enginePath = await (0, import_chunk_YBYBY7QI.resolveBinary)(binaryName, enginePath);
38
+ enginePath = await (0, import_chunk_U4WXIU7C.resolveBinary)(binaryName, enginePath);
39
39
  const platformInfo = await (0, import_get_platform.getPlatformInfo)();
40
40
  if (binaryName === import_fetch_engine.BinaryType.QueryEngineLibrary) {
41
41
  (0, import_get_platform.assertNodeAPISupported)();
@@ -47,7 +47,7 @@ async function getEngineVersion(enginePath, binaryName) {
47
47
  }
48
48
  }
49
49
  function safeGetEngineVersion(enginePath, binaryName) {
50
- return (0, import_chunk_7MD6344A.tryCatch2)(
50
+ return (0, import_chunk_5DBOS77Y.tryCatch2)(
51
51
  () => getEngineVersion(enginePath, binaryName),
52
52
  (error) => error
53
53
  );
@@ -26,21 +26,21 @@ 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_JAWGW6LI_exports = {};
30
- __export(chunk_JAWGW6LI_exports, {
29
+ var chunk_BXZXLEEH_exports = {};
30
+ __export(chunk_BXZXLEEH_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_JAWGW6LI_exports);
34
+ module.exports = __toCommonJS(chunk_BXZXLEEH_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
- var import_chunk_PSYMCJ4B = require("./chunk-PSYMCJ4B.js");
36
+ var import_chunk_CMIKSBKL = require("./chunk-CMIKSBKL.js");
37
37
  var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
38
38
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
39
39
  var import_chunk_QKPV6M3S = require("./chunk-QKPV6M3S.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
41
  var import_chunk_R7U45FIQ = require("./chunk-R7U45FIQ.js");
42
42
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
43
- var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
43
+ var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
45
45
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
46
46
  var import_debug = __toESM(require("@prisma/debug"));
@@ -65,10 +65,10 @@ ${detailsHeader} ${message}`;
65
65
  }
66
66
  };
67
67
  function validate(options) {
68
- const debugErrorType = (0, import_chunk_PSYMCJ4B.createDebugErrorType)(debug, "validateWasm");
68
+ const debugErrorType = (0, import_chunk_CMIKSBKL.createDebugErrorType)(debug, "validateWasm");
69
69
  debug(`Using validate Wasm`);
70
70
  const validateEither = (0, import_function.pipe)(
71
- (0, import_chunk_7MD6344A.tryCatch)(
71
+ (0, import_chunk_5DBOS77Y.tryCatch)(
72
72
  () => {
73
73
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
74
74
  debug("Triggering a Rust panic...");
@@ -87,7 +87,7 @@ function validate(options) {
87
87
  })
88
88
  )
89
89
  );
90
- if ((0, import_chunk_7MD6344A.isRight)(validateEither)) {
90
+ if ((0, import_chunk_5DBOS77Y.isRight)(validateEither)) {
91
91
  return;
92
92
  }
93
93
  const error = (0, import_chunk_XKZ6CBLA.z)(validateEither.left).with({ type: "wasm-error" }, (e) => {
@@ -113,7 +113,7 @@ function validate(options) {
113
113
  return panic;
114
114
  }
115
115
  const errorOutput = e.error.message;
116
- return new ValidateError((0, import_chunk_PSYMCJ4B.parseQueryEngineError)({ errorOutput, reason: e.reason }));
116
+ return new ValidateError((0, import_chunk_CMIKSBKL.parseQueryEngineError)({ errorOutput, reason: e.reason }));
117
117
  }).exhaustive();
118
118
  throw error;
119
119
  }
@@ -26,24 +26,24 @@ 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_PSYMCJ4B_exports = {};
30
- __export(chunk_PSYMCJ4B_exports, {
29
+ var chunk_CMIKSBKL_exports = {};
30
+ __export(chunk_CMIKSBKL_exports, {
31
31
  createDebugErrorType: () => createDebugErrorType,
32
32
  createSchemaValidationError: () => createSchemaValidationError,
33
33
  parseQueryEngineError: () => parseQueryEngineError,
34
34
  unlinkTempDatamodelPath: () => unlinkTempDatamodelPath
35
35
  });
36
- module.exports = __toCommonJS(chunk_PSYMCJ4B_exports);
36
+ module.exports = __toCommonJS(chunk_CMIKSBKL_exports);
37
37
  var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
38
38
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
39
39
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
40
- var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
40
+ var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
42
42
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
43
43
  var import_fs = __toESM(require("fs"));
44
44
  var import_function = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_ZGAIRZ32.require_function)());
45
45
  function unlinkTempDatamodelPath(options, tempDatamodelPath) {
46
- return (0, import_chunk_7MD6344A.tryCatch2)(
46
+ return (0, import_chunk_5DBOS77Y.tryCatch2)(
47
47
  () => {
48
48
  if (!options.datamodelPath && tempDatamodelPath) {
49
49
  return import_fs.default.promises.unlink(tempDatamodelPath);
@@ -66,11 +66,11 @@ function createSchemaValidationError(reason) {
66
66
  }
67
67
  function parseQueryEngineError({ errorOutput, reason }) {
68
68
  const actualError = (0, import_function.pipe)(
69
- (0, import_chunk_7MD6344A.tryCatch)(
69
+ (0, import_chunk_5DBOS77Y.tryCatch)(
70
70
  () => JSON.parse(errorOutput),
71
71
  () => ({ _tag: "unparsed", message: errorOutput, reason })
72
72
  ),
73
- (0, import_chunk_7MD6344A.map)((errorOutputAsJSON) => {
73
+ (0, import_chunk_5DBOS77Y.map)((errorOutputAsJSON) => {
74
74
  const defaultMessage = (0, import_chunk_PG5FDKSF.red)((0, import_chunk_PG5FDKSF.bold)((0, import_chunk_C47SCASR.relativizePathInPSLError)(errorOutputAsJSON.message)));
75
75
  const getConfigErrorInit = (0, import_chunk_XKZ6CBLA.z)(errorOutputAsJSON).with({ error_code: "P1012" }, (eJSON) => {
76
76
  return {
@@ -89,7 +89,7 @@ function parseQueryEngineError({ errorOutput, reason }) {
89
89
  });
90
90
  return { _tag: "parsed", message: defaultMessage, ...getConfigErrorInit };
91
91
  }),
92
- (0, import_chunk_7MD6344A.getOrElseW)(import_function.identity)
92
+ (0, import_chunk_5DBOS77Y.getOrElseW)(import_function.identity)
93
93
  );
94
94
  return actualError;
95
95
  }
@@ -16,12 +16,12 @@ 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_TSJICM5S_exports = {};
20
- __export(chunk_TSJICM5S_exports, {
19
+ var chunk_CRVLHWC5_exports = {};
20
+ __export(chunk_CRVLHWC5_exports, {
21
21
  extractPreviewFeatures: () => extractPreviewFeatures
22
22
  });
23
- module.exports = __toCommonJS(chunk_TSJICM5S_exports);
23
+ module.exports = __toCommonJS(chunk_CRVLHWC5_exports);
24
24
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
25
- function extractPreviewFeatures(config) {
26
- return config.generators.find((g) => (0, import_chunk_IOIAK7V7.parseEnvValue)(g.provider) === "prisma-client-js")?.previewFeatures || [];
25
+ function extractPreviewFeatures(generators) {
26
+ return generators.find((g) => (0, import_chunk_IOIAK7V7.parseEnvValue)(g.provider) === "prisma-client-js")?.previewFeatures || [];
27
27
  }
@@ -16,21 +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_LOQLKDQE_exports = {};
20
- __export(chunk_LOQLKDQE_exports, {
19
+ var chunk_EV7SJDE5_exports = {};
20
+ __export(chunk_EV7SJDE5_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_LOQLKDQE_exports);
27
+ module.exports = __toCommonJS(chunk_EV7SJDE5_exports);
28
28
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
29
- var import_chunk_RAC7G3AO = require("./chunk-RAC7G3AO.js");
29
+ var import_chunk_UVLDTPOI = require("./chunk-UVLDTPOI.js");
30
30
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
31
31
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
32
32
  function lintSchema({ schemas }) {
33
- const lintResult = import_chunk_RAC7G3AO.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
+ const lintResult = import_chunk_UVLDTPOI.prismaSchemaWasm.lint(JSON.stringify(schemas));
34
34
  const lintDiagnostics = JSON.parse(lintResult);
35
35
  return lintDiagnostics;
36
36
  }
@@ -26,21 +26,21 @@ 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_6E4KJPDH_exports = {};
30
- __export(chunk_6E4KJPDH_exports, {
29
+ var chunk_GH3DD2OM_exports = {};
30
+ __export(chunk_GH3DD2OM_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_6E4KJPDH_exports);
34
+ module.exports = __toCommonJS(chunk_GH3DD2OM_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
- var import_chunk_PSYMCJ4B = require("./chunk-PSYMCJ4B.js");
36
+ var import_chunk_CMIKSBKL = require("./chunk-CMIKSBKL.js");
37
37
  var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
38
38
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
39
- var import_chunk_JUXIW5NS = require("./chunk-JUXIW5NS.js");
39
+ var import_chunk_5MWCIDUY = require("./chunk-5MWCIDUY.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
- var import_chunk_RAC7G3AO = require("./chunk-RAC7G3AO.js");
41
+ var import_chunk_UVLDTPOI = require("./chunk-UVLDTPOI.js");
42
42
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
43
- var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
43
+ var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
45
45
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
46
46
  var import_debug = __toESM(require("@prisma/debug"));
@@ -60,25 +60,25 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: validate]`;
63
- super((0, import_chunk_JUXIW5NS.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_5MWCIDUY.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "ValidateError";
65
65
  }
66
66
  };
67
67
  function validate(options) {
68
- const debugErrorType = (0, import_chunk_PSYMCJ4B.createDebugErrorType)(debug, "validateWasm");
68
+ const debugErrorType = (0, import_chunk_CMIKSBKL.createDebugErrorType)(debug, "validateWasm");
69
69
  debug(`Using validate Wasm`);
70
70
  const validateEither = (0, import_function.pipe)(
71
- (0, import_chunk_7MD6344A.tryCatch)(
71
+ (0, import_chunk_5DBOS77Y.tryCatch)(
72
72
  () => {
73
73
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
74
74
  debug("Triggering a Rust panic...");
75
- import_chunk_RAC7G3AO.prismaSchemaWasm.debug_panic();
75
+ import_chunk_UVLDTPOI.prismaSchemaWasm.debug_panic();
76
76
  }
77
77
  const params = JSON.stringify({
78
78
  prismaSchema: options.schemas,
79
79
  noColor: Boolean(process.env.NO_COLOR)
80
80
  });
81
- import_chunk_RAC7G3AO.prismaSchemaWasm.validate(params);
81
+ import_chunk_UVLDTPOI.prismaSchemaWasm.validate(params);
82
82
  },
83
83
  (e) => ({
84
84
  type: "wasm-error",
@@ -87,7 +87,7 @@ function validate(options) {
87
87
  })
88
88
  )
89
89
  );
90
- if ((0, import_chunk_7MD6344A.isRight)(validateEither)) {
90
+ if ((0, import_chunk_5DBOS77Y.isRight)(validateEither)) {
91
91
  return;
92
92
  }
93
93
  const error = (0, import_chunk_XKZ6CBLA.z)(validateEither.left).with({ type: "wasm-error" }, (e) => {
@@ -113,7 +113,7 @@ function validate(options) {
113
113
  return panic;
114
114
  }
115
115
  const errorOutput = e.error.message;
116
- return new ValidateError((0, import_chunk_PSYMCJ4B.parseQueryEngineError)({ errorOutput, reason: e.reason }));
116
+ return new ValidateError((0, import_chunk_CMIKSBKL.parseQueryEngineError)({ errorOutput, reason: e.reason }));
117
117
  }).exhaustive();
118
118
  throw error;
119
119
  }
@@ -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_PIHBLNPJ_exports = {};
20
- __export(chunk_PIHBLNPJ_exports, {
19
+ var chunk_OSAQY3IQ_exports = {};
20
+ __export(chunk_OSAQY3IQ_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_PIHBLNPJ_exports);
23
+ module.exports = __toCommonJS(chunk_OSAQY3IQ_exports);
24
24
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
25
25
  var require_package = (0, import_chunk_2ESYSVXG.__commonJS)({
26
26
  "package.json"(exports, module2) {
27
27
  module2.exports = {
28
28
  name: "@prisma/internals",
29
- version: "6.6.0-dev.34",
29
+ version: "6.6.0-dev.36",
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",
@@ -16,22 +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_JHQHVXIR_exports = {};
20
- __export(chunk_JHQHVXIR_exports, {
19
+ var chunk_OSHZ4P3G_exports = {};
20
+ __export(chunk_OSHZ4P3G_exports, {
21
21
  toSchemasContainer: () => toSchemasContainer,
22
22
  toSchemasWithConfigDir: () => toSchemasWithConfigDir
23
23
  });
24
- module.exports = __toCommonJS(chunk_JHQHVXIR_exports);
25
- var import_chunk_RFB2U4GQ = require("./chunk-RFB2U4GQ.js");
24
+ module.exports = __toCommonJS(chunk_OSHZ4P3G_exports);
26
25
  function toSchemasContainer(schemas) {
27
26
  return {
28
27
  files: multipleSchemasToSchemaContainers(schemas)
29
28
  };
30
29
  }
31
- function toSchemasWithConfigDir(getSchemaResult, config) {
30
+ function toSchemasWithConfigDir(schemaContext) {
32
31
  return {
33
- files: multipleSchemasToSchemaContainers(getSchemaResult.schemas),
34
- configDir: (0, import_chunk_RFB2U4GQ.getMigrateConfigDir)(config, getSchemaResult.schemaPath)
32
+ files: multipleSchemasToSchemaContainers(schemaContext.schemaFiles),
33
+ configDir: schemaContext.primaryDatasourceDirectory
35
34
  };
36
35
  }
37
36
  function multipleSchemasToSchemaContainers(schemas) {