@prisma/internals 6.20.0-integration-feat-prisma-7-config.1 → 6.20.0-integration-merge-release-workflows.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/{chunk-5ZSVGCMS.js → chunk-2GUGGLPK.js} +96 -40
  2. package/dist/chunk-3FP46GUV.js +471 -0
  3. package/dist/chunk-46ABODUM.js +186 -0
  4. package/dist/{chunk-GJSFP4V4.js → chunk-4CGPN5SR.js} +9 -3
  5. package/dist/{chunk-GL7OANR6.js → chunk-4JCVHBYR.js} +5 -5
  6. package/dist/{chunk-MEOOYUIZ.js → chunk-5AI4FIZ3.js} +10 -10
  7. package/dist/{chunk-WITEP52Z.js → chunk-6K6FK4UW.js} +5 -5
  8. package/dist/chunk-6TTRTZXU.js +37 -0
  9. package/dist/{chunk-ANOE4NZ5.js → chunk-6ZGNGCXO.js} +9 -8
  10. package/dist/{chunk-SMJRM3EM.js → chunk-75BIJ5PX.js} +9 -9
  11. package/dist/{chunk-MYLPCGTT.js → chunk-7QC5VORA.js} +5 -5
  12. package/dist/{chunk-TGA7DC5A.js → chunk-AX5N26KG.js} +9 -14
  13. package/dist/{chunk-C5YUUOQW.js → chunk-BSTUWVHD.js} +12 -12
  14. package/dist/{chunk-QSVWJ2S2.js → chunk-BVJP43JS.js} +784 -13
  15. package/dist/{chunk-B2BNIZB2.js → chunk-CCLAMTCA.js} +8 -7
  16. package/dist/chunk-D4VDA2TZ.js +66 -0
  17. package/dist/chunk-DZYINYAA.js +68 -0
  18. package/dist/{chunk-VHE2A7YV.js → chunk-E4H6V3Z4.js} +11 -11
  19. package/dist/{chunk-WKOGDEF4.js → chunk-E5VGO6SU.js} +11 -11
  20. package/dist/chunk-ERSH2BQA.js +58 -0
  21. package/dist/{chunk-3ZWEK4N6.js → chunk-EWDCQQHP.js} +5 -5
  22. package/dist/{chunk-OKVM3CW4.js → chunk-EYVG6XQS.js} +39 -3
  23. package/dist/{chunk-5MHUYAV3.js → chunk-F2OZV76L.js} +9 -9
  24. package/dist/{chunk-VITPVRRI.js → chunk-FHZ5QJLR.js} +5 -5
  25. package/dist/{chunk-HNRMSI3R.js → chunk-FYZCPL2Z.js} +8 -5
  26. package/dist/{chunk-22HIO2UL.js → chunk-GMW36QQF.js} +7 -7
  27. package/dist/{chunk-BUQN4WLU.js → chunk-HFFWZTVM.js} +9 -7
  28. package/dist/{chunk-CGLLQXZE.js → chunk-HHG4DGHC.js} +12 -11
  29. package/dist/{chunk-5W3BSMTH.js → chunk-HO5HRHFZ.js} +6 -3
  30. package/dist/{chunk-3WXUQZS7.js → chunk-I6WLABB2.js} +5 -14
  31. package/dist/{chunk-FF7OLLBP.js → chunk-IDINCQMN.js} +784 -12
  32. package/dist/{chunk-QOZ7USPD.js → chunk-JOIIWB3U.js} +159 -193
  33. package/dist/{chunk-QJDVKII7.js → chunk-JTS4UPHJ.js} +5 -5
  34. package/dist/{chunk-RVTU2FIM.js → chunk-LV27YCGC.js} +11 -11
  35. package/dist/{chunk-KNNTV7IN.js → chunk-NVNI2SRU.js} +213 -687
  36. package/dist/{chunk-2Q43C56O.js → chunk-O2AHE2LQ.js} +5 -5
  37. package/dist/{chunk-H5STSTVK.js → chunk-OAT7ZJED.js} +20 -7
  38. package/dist/{chunk-DOY5PWV6.js → chunk-PXYIFYEC.js} +96 -40
  39. package/dist/chunk-PZMRR772.js +41 -0
  40. package/dist/{chunk-VFZCLI5X.js → chunk-QJ3QPUM5.js} +5 -5
  41. package/dist/{chunk-5I4ERIIY.js → chunk-RS2R7COT.js} +9 -3
  42. package/dist/{chunk-24ZPBDBI.js → chunk-S4PA7OZ7.js} +11 -11
  43. package/dist/{chunk-LA5QBRTU.js → chunk-SOKSKSEX.js} +20 -14
  44. package/dist/chunk-T2PM5TKT.js +55 -0
  45. package/dist/{chunk-QGQTFZOZ.js → chunk-T2UCYUSA.js} +20 -14
  46. package/dist/{chunk-5SJXW6MS.js → chunk-TBR6SNKL.js} +5 -5
  47. package/dist/{chunk-MLFKBBDL.js → chunk-TQFONRJP.js} +5 -5
  48. package/dist/{chunk-WSZXPLJQ.js → chunk-TZJROXB3.js} +4 -4
  49. package/dist/{chunk-WJKBKH3Y.js → chunk-UHI6VYFX.js} +5 -5
  50. package/dist/{chunk-BM3JIFQT.js → chunk-UQUWZJVN.js} +7 -7
  51. package/dist/{chunk-ARC7TW3L.js → chunk-WFNB7VRA.js} +14 -4
  52. package/dist/{chunk-COA7HD3T.js → chunk-WYQJ4JWO.js} +12 -12
  53. package/dist/{chunk-73HXEN2A.js → chunk-ZI7MNI3W.js} +5 -5
  54. package/dist/cli/checkUnsupportedDataProxy.js +60 -53
  55. package/dist/cli/checkUnsupportedSchemaEngineWasm.d.ts +22 -0
  56. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +135 -0
  57. package/dist/cli/getGeneratorSuccessMessage.js +3 -2
  58. package/dist/cli/getSchema.d.ts +15 -1
  59. package/dist/cli/getSchema.js +5 -4
  60. package/dist/cli/hashes.js +4 -4
  61. package/dist/cli/schemaContext.d.ts +11 -2
  62. package/dist/cli/schemaContext.js +60 -53
  63. package/dist/client/getClientEngineType.d.ts +7 -0
  64. package/dist/client/getClientEngineType.js +26 -0
  65. package/dist/dotenvExpand.d.ts +35 -0
  66. package/dist/dotenvExpand.js +25 -0
  67. package/dist/engine-commands/errorHelpers.js +4 -4
  68. package/dist/engine-commands/formatSchema.js +59 -52
  69. package/dist/engine-commands/getConfig.d.ts +1 -0
  70. package/dist/engine-commands/getConfig.js +13 -13
  71. package/dist/engine-commands/getDmmf.js +10 -10
  72. package/dist/engine-commands/getEngineVersion.js +9 -6
  73. package/dist/engine-commands/getEnginesInfo.d.ts +1 -0
  74. package/dist/engine-commands/getEnginesInfo.js +9 -7
  75. package/dist/engine-commands/index.js +71 -64
  76. package/dist/engine-commands/lintSchema.js +9 -9
  77. package/dist/engine-commands/mergeSchemas.js +10 -10
  78. package/dist/engine-commands/queryEngineCommons.js +6 -6
  79. package/dist/engine-commands/validate.js +10 -10
  80. package/dist/errorReporting.js +6 -6
  81. package/dist/get-generators/getGenerators.d.ts +1 -0
  82. package/dist/get-generators/getGenerators.js +62 -55
  83. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  84. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  85. package/dist/get-generators/utils/getBinaryPathsByVersion.js +5 -6
  86. package/dist/getPackedPackage.js +3 -4
  87. package/dist/index.d.ts +10 -1
  88. package/dist/index.js +112 -95
  89. package/dist/{multipart-parser-UV3WZSWW.js → multipart-parser-3AFJFP6K.js} +6 -6
  90. package/dist/resolveBinary.js +7 -8
  91. package/dist/schemaEngineCommands.js +8 -9
  92. package/dist/sendPanic.js +4 -4
  93. package/dist/utils/cloudflareD1.d.ts +5 -0
  94. package/dist/utils/cloudflareD1.js +27 -0
  95. package/dist/utils/drawBox.js +2 -2
  96. package/dist/utils/fs-functional.js +10 -10
  97. package/dist/utils/fs-utils.js +8 -8
  98. package/dist/utils/getEnvPaths.d.ts +14 -0
  99. package/dist/utils/getEnvPaths.js +29 -0
  100. package/dist/utils/getVersionFromPackageJson.js +3 -3
  101. package/dist/utils/handleEngineLoadingErrors.d.ts +8 -0
  102. package/dist/utils/handleEngineLoadingErrors.js +27 -0
  103. package/dist/utils/handlePanic.js +6 -6
  104. package/dist/utils/link.js +2 -2
  105. package/dist/utils/load.d.ts +6 -0
  106. package/dist/utils/load.js +28 -0
  107. package/dist/utils/loadEnvFile.d.ts +10 -0
  108. package/dist/utils/loadEnvFile.js +30 -0
  109. package/dist/utils/missingDatasource.js +3 -3
  110. package/dist/utils/missingGeneratorMessage.js +5 -5
  111. package/dist/utils/serializeQueryEngineName.js +2 -2
  112. package/dist/utils/tryLoadEnvs.d.ts +25 -0
  113. package/dist/utils/tryLoadEnvs.js +30 -0
  114. package/dist/wasm.js +5 -5
  115. package/package.json +16 -15
  116. package/dist/chunk-DYV47NUW.js +0 -796
@@ -0,0 +1,55 @@
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 chunk_T2PM5TKT_exports = {};
20
+ __export(chunk_T2PM5TKT_exports, {
21
+ dotenvExpand: () => dotenvExpand
22
+ });
23
+ module.exports = __toCommonJS(chunk_T2PM5TKT_exports);
24
+ function dotenvExpand(config) {
25
+ const environment = config.ignoreProcessEnv ? {} : process.env;
26
+ const interpolate = (envValue) => {
27
+ const matches = envValue.match(/(.?\${(?:[a-zA-Z0-9_]+)?})/g);
28
+ return matches?.reduce(function(newEnv, match) {
29
+ const parts = /(.?)\${([a-zA-Z0-9_]+)?}/g.exec(match);
30
+ if (!parts) {
31
+ return newEnv;
32
+ }
33
+ const prefix = parts[1];
34
+ let value, replacePart;
35
+ if (prefix === "\\") {
36
+ replacePart = parts[0];
37
+ value = replacePart.replace("\\$", "$");
38
+ } else {
39
+ const key = parts[2];
40
+ replacePart = parts[0].substring(prefix.length);
41
+ value = Object.hasOwnProperty.call(environment, key) ? environment[key] : config.parsed[key] || "";
42
+ value = interpolate(value);
43
+ }
44
+ return newEnv.replace(replacePart, value);
45
+ }, envValue) ?? envValue;
46
+ };
47
+ for (const configKey in config.parsed) {
48
+ const value = Object.hasOwnProperty.call(environment, configKey) ? environment[configKey] : config.parsed[configKey];
49
+ config.parsed[configKey] = interpolate(value);
50
+ }
51
+ for (const processKey in config.parsed) {
52
+ environment[processKey] = config.parsed[processKey];
53
+ }
54
+ return config;
55
+ }
@@ -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_QGQTFZOZ_exports = {};
30
- __export(chunk_QGQTFZOZ_exports, {
29
+ var chunk_T2UCYUSA_exports = {};
30
+ __export(chunk_T2UCYUSA_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_QGQTFZOZ_exports);
38
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
39
- var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
+ module.exports = __toCommonJS(chunk_T2UCYUSA_exports);
38
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
40
39
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
41
- var import_chunk_QJDVKII7 = require("./chunk-QJDVKII7.js");
42
- var import_chunk_VITPVRRI = require("./chunk-VITPVRRI.js");
40
+ var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
41
+ var import_chunk_O2AHE2LQ = require("./chunk-O2AHE2LQ.js");
42
+ var import_chunk_EWDCQQHP = require("./chunk-EWDCQQHP.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_QJDVKII7.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_O2AHE2LQ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
68
  this.name = "GetConfigError";
69
69
  }
70
70
  };
@@ -82,17 +82,23 @@ 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_VITPVRRI.prismaSchemaWasm.debug_panic();
92
+ import_chunk_EWDCQQHP.prismaSchemaWasm.debug_panic();
93
93
  }
94
- const params = JSON.stringify({ prismaSchema: options.datamodel });
95
- return import_chunk_VITPVRRI.prismaSchemaWasm.get_config(params);
94
+ const params = JSON.stringify({
95
+ prismaSchema: options.datamodel,
96
+ datasourceOverrides: {},
97
+ ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
98
+ env: process.env
99
+ });
100
+ const data = import_chunk_EWDCQQHP.prismaSchemaWasm.get_config(params);
101
+ return data;
96
102
  },
97
103
  (e) => ({
98
104
  type: "wasm-error",
@@ -150,12 +156,12 @@ async function getConfig(options) {
150
156
  return panic;
151
157
  }
152
158
  const errorOutput = e.error.message;
153
- 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 }));
154
160
  }).with({ type: "validation-error" }, (e) => {
155
161
  return new GetConfigError({
156
162
  _tag: "parsed",
157
163
  errorCode: SCHEMA_VALIDATION_ERROR_CODE,
158
- reason: (0, import_chunk_WSZXPLJQ.createSchemaValidationError)(e.reason),
164
+ reason: (0, import_chunk_TZJROXB3.createSchemaValidationError)(e.reason),
159
165
  message: formatErrors(e.error)
160
166
  });
161
167
  }).otherwise((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_5SJXW6MS_exports = {};
20
- __export(chunk_5SJXW6MS_exports, {
19
+ var chunk_TBR6SNKL_exports = {};
20
+ __export(chunk_TBR6SNKL_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_5SJXW6MS_exports);
28
- var import_chunk_VITPVRRI = require("./chunk-VITPVRRI.js");
27
+ module.exports = __toCommonJS(chunk_TBR6SNKL_exports);
28
+ var import_chunk_FHZ5QJLR = require("./chunk-FHZ5QJLR.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_VITPVRRI.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_FHZ5QJLR.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_MLFKBBDL_exports = {};
30
- __export(chunk_MLFKBBDL_exports, {
29
+ var chunk_TQFONRJP_exports = {};
30
+ __export(chunk_TQFONRJP_exports, {
31
31
  createDirIfNotExists: () => createDirIfNotExists,
32
32
  fs_utils_exports: () => fs_utils_exports,
33
33
  getFilesInDir: () => getFilesInDir,
@@ -36,9 +36,9 @@ __export(chunk_MLFKBBDL_exports, {
36
36
  removeEmptyDirs: () => removeEmptyDirs,
37
37
  writeFile: () => writeFile
38
38
  });
39
- module.exports = __toCommonJS(chunk_MLFKBBDL_exports);
39
+ module.exports = __toCommonJS(chunk_TQFONRJP_exports);
40
40
  var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
41
- var import_chunk_QOZ7USPD = require("./chunk-QOZ7USPD.js");
41
+ var import_chunk_JOIIWB3U = require("./chunk-JOIIWB3U.js");
42
42
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
43
43
  var import_promises = __toESM(require("fs/promises"));
44
44
  var import_path = __toESM(require("path"));
@@ -51,7 +51,7 @@ var fs_utils_exports = {};
51
51
  removeEmptyDirs: () => removeEmptyDirs,
52
52
  writeFile: () => writeFile
53
53
  });
54
- var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_QOZ7USPD.require_globby)());
54
+ var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_JOIIWB3U.require_globby)());
55
55
  function createDirIfNotExists(dir) {
56
56
  return import_promises.default.mkdir(dir, { recursive: true });
57
57
  }
@@ -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_WSZXPLJQ_exports = {};
30
- __export(chunk_WSZXPLJQ_exports, {
29
+ var chunk_TZJROXB3_exports = {};
30
+ __export(chunk_TZJROXB3_exports, {
31
31
  createDebugErrorType: () => createDebugErrorType,
32
32
  createSchemaValidationError: () => createSchemaValidationError,
33
33
  parseQueryEngineError: () => parseQueryEngineError,
34
34
  unlinkTempDatamodelPath: () => unlinkTempDatamodelPath
35
35
  });
36
- module.exports = __toCommonJS(chunk_WSZXPLJQ_exports);
37
- var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
36
+ module.exports = __toCommonJS(chunk_TZJROXB3_exports);
38
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
+ var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
39
39
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
41
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -16,17 +16,17 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_WJKBKH3Y_exports = {};
20
- __export(chunk_WJKBKH3Y_exports, {
19
+ var chunk_UHI6VYFX_exports = {};
20
+ __export(chunk_UHI6VYFX_exports, {
21
21
  SchemaEngineExitCode: () => SchemaEngineExitCode,
22
22
  canConnectToDatabase: () => canConnectToDatabase,
23
23
  createDatabase: () => createDatabase,
24
24
  dropDatabase: () => dropDatabase,
25
25
  execaCommand: () => execaCommand
26
26
  });
27
- module.exports = __toCommonJS(chunk_WJKBKH3Y_exports);
27
+ module.exports = __toCommonJS(chunk_UHI6VYFX_exports);
28
28
  var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
29
- var import_chunk_HNRMSI3R = require("./chunk-HNRMSI3R.js");
29
+ var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
30
30
  var import_fetch_engine = require("@prisma/fetch-engine");
31
31
  var SchemaEngineExitCode = /* @__PURE__ */ ((SchemaEngineExitCode2) => {
32
32
  SchemaEngineExitCode2[SchemaEngineExitCode2["Success"] = 0] = "Success";
@@ -139,7 +139,7 @@ async function execaCommand({
139
139
  schemaEnginePath,
140
140
  engineCommandName
141
141
  }) {
142
- schemaEnginePath = schemaEnginePath || await (0, import_chunk_HNRMSI3R.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
142
+ schemaEnginePath = schemaEnginePath || await (0, import_chunk_FYZCPL2Z.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
143
143
  try {
144
144
  return await (0, import_chunk_JOIHHXR6.execa)(schemaEnginePath, ["cli", "--datasource", connectionString, engineCommandName], {
145
145
  cwd,
@@ -26,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_BM3JIFQT_exports = {};
30
- __export(chunk_BM3JIFQT_exports, {
29
+ var chunk_UQUWZJVN_exports = {};
30
+ __export(chunk_UQUWZJVN_exports, {
31
31
  handlePanic: () => handlePanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_BM3JIFQT_exports);
34
- var import_chunk_3WXUQZS7 = require("./chunk-3WXUQZS7.js");
33
+ module.exports = __toCommonJS(chunk_UQUWZJVN_exports);
34
+ var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
35
35
  var import_chunk_7IKUTPWQ = require("./chunk-7IKUTPWQ.js");
36
36
  var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
37
- var import_chunk_BUQN4WLU = require("./chunk-BUQN4WLU.js");
37
+ var import_chunk_HFFWZTVM = require("./chunk-HFFWZTVM.js");
38
38
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
39
39
  var import_prompts = __toESM(require("prompts"));
40
40
  async function handlePanic(args) {
@@ -56,7 +56,7 @@ ${(0, import_chunk_PG5FDKSF.red)(errorMessage)}
56
56
 
57
57
  ${(0, import_chunk_PG5FDKSF.bold)("Please help us improve Prisma by submitting an error report.")}
58
58
  ${(0, import_chunk_PG5FDKSF.bold)("Error reports never contain personal or other sensitive information.")}
59
- ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/telemetry")}`)}
59
+ ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/telemetry")}`)}
60
60
  `);
61
61
  const { value: shouldSubmitReport } = await (0, import_prompts.default)({
62
62
  type: "select",
@@ -79,7 +79,7 @@ ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_3WXUQZS7.link)(
79
79
  if (shouldSubmitReport) {
80
80
  try {
81
81
  console.log("Submitting...");
82
- const reportId = await (0, import_chunk_BUQN4WLU.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
82
+ const reportId = await (0, import_chunk_HFFWZTVM.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
83
83
  console.log(`
84
84
  ${(0, import_chunk_PG5FDKSF.bold)(`We successfully received the error report id: ${reportId}`)}`);
85
85
  console.log(`
@@ -26,12 +26,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_ARC7TW3L_exports = {};
30
- __export(chunk_ARC7TW3L_exports, {
29
+ var chunk_WFNB7VRA_exports = {};
30
+ __export(chunk_WFNB7VRA_exports, {
31
31
  getGeneratorSuccessMessage: () => getGeneratorSuccessMessage
32
32
  });
33
- module.exports = __toCommonJS(chunk_ARC7TW3L_exports);
33
+ module.exports = __toCommonJS(chunk_WFNB7VRA_exports);
34
34
  var import_chunk_XYCIH36R = require("./chunk-XYCIH36R.js");
35
+ var import_chunk_ERSH2BQA = require("./chunk-ERSH2BQA.js");
35
36
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
36
37
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
37
38
  var import_path = __toESM(require("path"));
@@ -44,7 +45,16 @@ function getGeneratorSuccessMessage(generator, time) {
44
45
  function formatVersion(generator) {
45
46
  const version = generator.manifest?.version;
46
47
  if (generator.getProvider() === "prisma-client-js") {
47
- return `v${version ?? "?.?.?"}`;
48
+ const engineType = (0, import_chunk_ERSH2BQA.getClientEngineType)(generator.config);
49
+ let engineHint = "";
50
+ if (generator.options?.noEngine) {
51
+ engineHint = ", engine=none";
52
+ } else if (engineType === "binary") {
53
+ engineHint = ", engine=binary";
54
+ } else if (engineType === "library") {
55
+ engineHint = "";
56
+ }
57
+ return `v${version ?? "?.?.?"}${engineHint}`;
48
58
  }
49
59
  return version;
50
60
  }
@@ -26,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_COA7HD3T_exports = {};
30
- __export(chunk_COA7HD3T_exports, {
29
+ var chunk_WYQJ4JWO_exports = {};
30
+ __export(chunk_WYQJ4JWO_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_COA7HD3T_exports);
35
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
- var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
34
+ module.exports = __toCommonJS(chunk_WYQJ4JWO_exports);
35
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
37
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_QJDVKII7 = require("./chunk-QJDVKII7.js");
39
- var import_chunk_VITPVRRI = require("./chunk-VITPVRRI.js");
37
+ var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
+ var import_chunk_JTS4UPHJ = require("./chunk-JTS4UPHJ.js");
39
+ var import_chunk_FHZ5QJLR = require("./chunk-FHZ5QJLR.js");
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_QJDVKII7.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_JTS4UPHJ.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_VITPVRRI.prismaSchemaWasm.debug_panic();
74
+ import_chunk_FHZ5QJLR.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_VITPVRRI.prismaSchemaWasm.validate(params);
80
+ import_chunk_FHZ5QJLR.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,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_73HXEN2A_exports = {};
20
- __export(chunk_73HXEN2A_exports, {
19
+ var chunk_ZI7MNI3W_exports = {};
20
+ __export(chunk_ZI7MNI3W_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_73HXEN2A_exports);
28
- var import_chunk_3ZWEK4N6 = require("./chunk-3ZWEK4N6.js");
27
+ module.exports = __toCommonJS(chunk_ZI7MNI3W_exports);
28
+ var import_chunk_EWDCQQHP = require("./chunk-EWDCQQHP.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_3ZWEK4N6.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_EWDCQQHP.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -18,111 +18,118 @@ 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_5ZSVGCMS.checkUnsupportedDataProxy,
22
- forbiddenCmdWithDataProxyFlagMessage: () => import_chunk_5ZSVGCMS.forbiddenCmdWithDataProxyFlagMessage
21
+ checkUnsupportedDataProxy: () => import_chunk_PXYIFYEC.checkUnsupportedDataProxy,
22
+ forbiddenCmdWithDataProxyFlagMessage: () => import_chunk_PXYIFYEC.forbiddenCmdWithDataProxyFlagMessage
23
23
  });
24
24
  module.exports = __toCommonJS(checkUnsupportedDataProxy_exports);
25
- var import_chunk_5ZSVGCMS = require("../chunk-5ZSVGCMS.js");
25
+ var import_chunk_PXYIFYEC = require("../chunk-PXYIFYEC.js");
26
+ var import_chunk_X3P4J7WW = require("../chunk-X3P4J7WW.js");
26
27
  var import_chunk_LRU47BGE = require("../chunk-LRU47BGE.js");
27
28
  var import_chunk_OSHZ4P3G = require("../chunk-OSHZ4P3G.js");
28
29
  var import_chunk_X77CS5RK = require("../chunk-X77CS5RK.js");
29
- var import_chunk_5MHUYAV3 = require("../chunk-5MHUYAV3.js");
30
- var import_chunk_5I4ERIIY = require("../chunk-5I4ERIIY.js");
31
- var import_chunk_GJSFP4V4 = require("../chunk-GJSFP4V4.js");
32
- var import_chunk_X3P4J7WW = require("../chunk-X3P4J7WW.js");
30
+ var import_chunk_F2OZV76L = require("../chunk-F2OZV76L.js");
31
+ var import_chunk_RS2R7COT = require("../chunk-RS2R7COT.js");
32
+ var import_chunk_4CGPN5SR = require("../chunk-4CGPN5SR.js");
33
33
  var import_chunk_GXW4NTU2 = require("../chunk-GXW4NTU2.js");
34
34
  var import_chunk_5FJ3MENK = require("../chunk-5FJ3MENK.js");
35
35
  var import_chunk_PFYALFCY = require("../chunk-PFYALFCY.js");
36
- var import_chunk_5W3BSMTH = require("../chunk-5W3BSMTH.js");
36
+ var import_chunk_HO5HRHFZ = require("../chunk-HO5HRHFZ.js");
37
37
  var import_chunk_ANU3HEGF = require("../chunk-ANU3HEGF.js");
38
38
  var import_chunk_LRBXMV4B = require("../chunk-LRBXMV4B.js");
39
- var import_chunk_MYLPCGTT = require("../chunk-MYLPCGTT.js");
40
- var import_chunk_TGA7DC5A = require("../chunk-TGA7DC5A.js");
39
+ var import_chunk_7QC5VORA = require("../chunk-7QC5VORA.js");
40
+ var import_chunk_AX5N26KG = require("../chunk-AX5N26KG.js");
41
41
  var import_chunk_2SDPW6AX = require("../chunk-2SDPW6AX.js");
42
- var import_chunk_RBDYOTWB = require("../chunk-RBDYOTWB.js");
43
- var import_chunk_ZKWDIAVF = require("../chunk-ZKWDIAVF.js");
42
+ var import_chunk_PZMRR772 = require("../chunk-PZMRR772.js");
44
43
  var import_chunk_7B5PXS6N = require("../chunk-7B5PXS6N.js");
45
44
  var import_chunk_UGR6KLZN = require("../chunk-UGR6KLZN.js");
46
45
  var import_chunk_CGFNDGGI = require("../chunk-CGFNDGGI.js");
47
- var import_chunk_BM3JIFQT = require("../chunk-BM3JIFQT.js");
48
- var import_chunk_3WXUQZS7 = require("../chunk-3WXUQZS7.js");
49
- var import_chunk_WV4QHCSM = require("../chunk-WV4QHCSM.js");
50
46
  var import_chunk_XXTPN4LB = require("../chunk-XXTPN4LB.js");
51
47
  var import_chunk_2IOZUH3U = require("../chunk-2IOZUH3U.js");
52
48
  var import_chunk_JTKAT4KZ = require("../chunk-JTKAT4KZ.js");
53
- var import_chunk_SMJRM3EM = require("../chunk-SMJRM3EM.js");
54
- var import_chunk_MLFKBBDL = require("../chunk-MLFKBBDL.js");
55
- var import_chunk_J77ZIDXB = require("../chunk-J77ZIDXB.js");
49
+ var import_chunk_RBDYOTWB = require("../chunk-RBDYOTWB.js");
50
+ var import_chunk_ZKWDIAVF = require("../chunk-ZKWDIAVF.js");
56
51
  var import_chunk_CUD726EK = require("../chunk-CUD726EK.js");
57
52
  var import_chunk_BERN76ZI = require("../chunk-BERN76ZI.js");
58
- var import_chunk_7IKUTPWQ = require("../chunk-7IKUTPWQ.js");
53
+ var import_chunk_46ABODUM = require("../chunk-46ABODUM.js");
54
+ var import_chunk_3FP46GUV = require("../chunk-3FP46GUV.js");
59
55
  var import_chunk_RFB2U4GQ = require("../chunk-RFB2U4GQ.js");
56
+ var import_chunk_UQUWZJVN = require("../chunk-UQUWZJVN.js");
57
+ var import_chunk_I6WLABB2 = require("../chunk-I6WLABB2.js");
58
+ var import_chunk_7IKUTPWQ = require("../chunk-7IKUTPWQ.js");
59
+ var import_chunk_WV4QHCSM = require("../chunk-WV4QHCSM.js");
60
+ var import_chunk_D4VDA2TZ = require("../chunk-D4VDA2TZ.js");
61
+ var import_chunk_HHG4DGHC = require("../chunk-HHG4DGHC.js");
62
+ var import_chunk_CRVLHWC5 = require("../chunk-CRVLHWC5.js");
63
+ var import_chunk_75BIJ5PX = require("../chunk-75BIJ5PX.js");
64
+ var import_chunk_TQFONRJP = require("../chunk-TQFONRJP.js");
65
+ var import_chunk_J77ZIDXB = require("../chunk-J77ZIDXB.js");
66
+ var import_chunk_HW5RCZSE = require("../chunk-HW5RCZSE.js");
67
+ var import_chunk_Y4TOGY6I = require("../chunk-Y4TOGY6I.js");
68
+ var import_chunk_IL7PSY44 = require("../chunk-IL7PSY44.js");
60
69
  var import_chunk_DODIJPCS = require("../chunk-DODIJPCS.js");
61
70
  var import_chunk_L6KOIJJ5 = require("../chunk-L6KOIJJ5.js");
62
71
  var import_chunk_NIWBAJZV = require("../chunk-NIWBAJZV.js");
63
72
  var import_chunk_FCYHZHVW = require("../chunk-FCYHZHVW.js");
64
73
  var import_chunk_H4NI2RIK = require("../chunk-H4NI2RIK.js");
65
74
  var import_chunk_ICFLO5JW = require("../chunk-ICFLO5JW.js");
66
- var import_chunk_CGLLQXZE = require("../chunk-CGLLQXZE.js");
67
- var import_chunk_CRVLHWC5 = require("../chunk-CRVLHWC5.js");
75
+ var import_chunk_BSTUWVHD = require("../chunk-BSTUWVHD.js");
68
76
  var import_chunk_TQCLUNM2 = require("../chunk-TQCLUNM2.js");
69
77
  var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
70
78
  var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
71
79
  var import_chunk_HPVMQFIY = require("../chunk-HPVMQFIY.js");
72
80
  var import_chunk_E23HYCQJ = require("../chunk-E23HYCQJ.js");
73
- var import_chunk_HW5RCZSE = require("../chunk-HW5RCZSE.js");
74
- var import_chunk_Y4TOGY6I = require("../chunk-Y4TOGY6I.js");
75
- var import_chunk_IL7PSY44 = require("../chunk-IL7PSY44.js");
76
- var import_chunk_22HIO2UL = require("../chunk-22HIO2UL.js");
77
- var import_chunk_H5STSTVK = require("../chunk-H5STSTVK.js");
78
- var import_chunk_5SJXW6MS = require("../chunk-5SJXW6MS.js");
79
- var import_chunk_WKOGDEF4 = require("../chunk-WKOGDEF4.js");
80
- var import_chunk_COA7HD3T = require("../chunk-COA7HD3T.js");
81
- var import_chunk_GL7OANR6 = require("../chunk-GL7OANR6.js");
82
- var import_chunk_D4VZUY3O = require("../chunk-D4VZUY3O.js");
83
- var import_chunk_QGQTFZOZ = require("../chunk-QGQTFZOZ.js");
84
- var import_chunk_RVTU2FIM = require("../chunk-RVTU2FIM.js");
85
- var import_chunk_WSZXPLJQ = require("../chunk-WSZXPLJQ.js");
86
- var import_chunk_R6QH57HZ = require("../chunk-R6QH57HZ.js");
81
+ var import_chunk_T2UCYUSA = require("../chunk-T2UCYUSA.js");
82
+ var import_chunk_S4PA7OZ7 = require("../chunk-S4PA7OZ7.js");
83
+ var import_chunk_GMW36QQF = require("../chunk-GMW36QQF.js");
84
+ var import_chunk_OAT7ZJED = require("../chunk-OAT7ZJED.js");
85
+ var import_chunk_6TTRTZXU = require("../chunk-6TTRTZXU.js");
86
+ var import_chunk_DZYINYAA = require("../chunk-DZYINYAA.js");
87
+ var import_chunk_ZI7MNI3W = require("../chunk-ZI7MNI3W.js");
88
+ var import_chunk_E5VGO6SU = require("../chunk-E5VGO6SU.js");
89
+ var import_chunk_TZJROXB3 = require("../chunk-TZJROXB3.js");
87
90
  var import_chunk_C47SCASR = require("../chunk-C47SCASR.js");
88
- var import_chunk_QJDVKII7 = require("../chunk-QJDVKII7.js");
91
+ var import_chunk_R6QH57HZ = require("../chunk-R6QH57HZ.js");
92
+ var import_chunk_J7ZPY2XA = require("../chunk-J7ZPY2XA.js");
93
+ var import_chunk_4JCVHBYR = require("../chunk-4JCVHBYR.js");
94
+ var import_chunk_EYVG6XQS = require("../chunk-EYVG6XQS.js");
95
+ var import_chunk_D4VZUY3O = require("../chunk-D4VZUY3O.js");
96
+ var import_chunk_O2AHE2LQ = require("../chunk-O2AHE2LQ.js");
97
+ var import_chunk_6K6FK4UW = require("../chunk-6K6FK4UW.js");
89
98
  var import_chunk_QN6PSQY7 = require("../chunk-QN6PSQY7.js");
90
- var import_chunk_WITEP52Z = require("../chunk-WITEP52Z.js");
91
99
  var import_chunk_DTPFRZWV = require("../chunk-DTPFRZWV.js");
92
- var import_chunk_VITPVRRI = require("../chunk-VITPVRRI.js");
93
- var import_chunk_ANOE4NZ5 = require("../chunk-ANOE4NZ5.js");
100
+ var import_chunk_EWDCQQHP = require("../chunk-EWDCQQHP.js");
101
+ var import_chunk_6ZGNGCXO = require("../chunk-6ZGNGCXO.js");
94
102
  var import_chunk_6JE6QGSJ = require("../chunk-6JE6QGSJ.js");
95
103
  var import_chunk_BCQZ6JQE = require("../chunk-BCQZ6JQE.js");
96
- var import_chunk_ARC7TW3L = require("../chunk-ARC7TW3L.js");
104
+ var import_chunk_WFNB7VRA = require("../chunk-WFNB7VRA.js");
97
105
  var import_chunk_XYCIH36R = require("../chunk-XYCIH36R.js");
98
- var import_chunk_OKVM3CW4 = require("../chunk-OKVM3CW4.js");
99
- var import_chunk_J7ZPY2XA = require("../chunk-J7ZPY2XA.js");
106
+ var import_chunk_ERSH2BQA = require("../chunk-ERSH2BQA.js");
107
+ var import_chunk_ZJWZK45Z = require("../chunk-ZJWZK45Z.js");
100
108
  var import_chunk_2B26F5N3 = require("../chunk-2B26F5N3.js");
101
- var import_chunk_WJKBKH3Y = require("../chunk-WJKBKH3Y.js");
109
+ var import_chunk_UHI6VYFX = require("../chunk-UHI6VYFX.js");
102
110
  var import_chunk_JOIHHXR6 = require("../chunk-JOIHHXR6.js");
103
- var import_chunk_HNRMSI3R = require("../chunk-HNRMSI3R.js");
111
+ var import_chunk_FYZCPL2Z = require("../chunk-FYZCPL2Z.js");
104
112
  var import_chunk_M3GBKLGE = require("../chunk-M3GBKLGE.js");
105
- var import_chunk_FF7OLLBP = require("../chunk-FF7OLLBP.js");
113
+ var import_chunk_IDINCQMN = require("../chunk-IDINCQMN.js");
106
114
  var import_chunk_TWSLDIFL = require("../chunk-TWSLDIFL.js");
107
115
  var import_chunk_5DBOS77Y = require("../chunk-5DBOS77Y.js");
108
- var import_chunk_BUQN4WLU = require("../chunk-BUQN4WLU.js");
116
+ var import_chunk_HFFWZTVM = require("../chunk-HFFWZTVM.js");
109
117
  var import_chunk_KDHESRKE = require("../chunk-KDHESRKE.js");
110
118
  var import_chunk_XKZ6CBLA = require("../chunk-XKZ6CBLA.js");
111
119
  var import_chunk_LMVSIVKQ = require("../chunk-LMVSIVKQ.js");
112
120
  var import_chunk_BPDMLM32 = require("../chunk-BPDMLM32.js");
113
121
  var import_chunk_IOIAK7V7 = require("../chunk-IOIAK7V7.js");
122
+ var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
114
123
  var import_chunk_WXRVYSYN = require("../chunk-WXRVYSYN.js");
115
124
  var import_chunk_SBUSVJCV = require("../chunk-SBUSVJCV.js");
116
125
  var import_chunk_LYFOJ5NK = require("../chunk-LYFOJ5NK.js");
117
126
  var import_chunk_LPNBWFQ3 = require("../chunk-LPNBWFQ3.js");
118
- var import_chunk_MEOOYUIZ = require("../chunk-MEOOYUIZ.js");
119
- var import_chunk_KNNTV7IN = require("../chunk-KNNTV7IN.js");
120
- var import_chunk_QSVWJ2S2 = require("../chunk-QSVWJ2S2.js");
127
+ var import_chunk_T2PM5TKT = require("../chunk-T2PM5TKT.js");
128
+ var import_chunk_5AI4FIZ3 = require("../chunk-5AI4FIZ3.js");
129
+ var import_chunk_NVNI2SRU = require("../chunk-NVNI2SRU.js");
130
+ var import_chunk_BVJP43JS = require("../chunk-BVJP43JS.js");
121
131
  var import_chunk_KDP6C3CB = require("../chunk-KDP6C3CB.js");
122
- var import_chunk_QOZ7USPD = require("../chunk-QOZ7USPD.js");
132
+ var import_chunk_JOIIWB3U = require("../chunk-JOIIWB3U.js");
123
133
  var import_chunk_UMM35VP5 = require("../chunk-UMM35VP5.js");
124
134
  var import_chunk_5VQNKCKW = require("../chunk-5VQNKCKW.js");
125
- var import_chunk_DYV47NUW = require("../chunk-DYV47NUW.js");
126
- var import_chunk_ZJWZK45Z = require("../chunk-ZJWZK45Z.js");
127
- var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
128
135
  var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1,22 @@
1
+ import { PrismaConfigInternal } from '@prisma/config';
2
+ /**
3
+ * Get the message to display when a command is forbidden with a data proxy flag
4
+ * @param command the cli command (eg. db push)
5
+ * @returns
6
+ */
7
+ export declare const forbiddenCmdFlagWithSchemaEngineWasm: ({ cmd, flag }: {
8
+ cmd: string;
9
+ flag: string;
10
+ }) => string;
11
+ /**
12
+ * Check that the data proxy cannot be used through the given urls and schema contexts
13
+ * @param command the cli command (eg. db push)
14
+ * @param urls list of urls to check
15
+ * @param schemaContexts list of schema contexts to check
16
+ */
17
+ export declare function checkUnsupportedSchemaEngineWasm({ cmd, config, args, flags, }: {
18
+ cmd: string;
19
+ config: PrismaConfigInternal;
20
+ args: Record<string, unknown>;
21
+ flags: Array<string>;
22
+ }): void;