@prisma/internals 7.9.0-dev.9 → 7.10.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/{chunk-EBOYZFET.js → chunk-3GIVRMID.js} +5 -5
  2. package/dist/{chunk-4NBMRBMA.js → chunk-44CAWTX7.js} +8 -8
  3. package/dist/{chunk-QQ2KCQEQ.js → chunk-4C6VSKUV.js} +5 -5
  4. package/dist/{chunk-UGESASQO.js → chunk-4VJ5L3MB.js} +11 -11
  5. package/dist/{chunk-QIIB2GKK.js → chunk-4YZJJPK2.js} +13 -13
  6. package/dist/{chunk-PC5G4IPR.js → chunk-5P4WR3QW.js} +11 -11
  7. package/dist/{chunk-WMYLXKKD.js → chunk-5PJQQKQI.js} +4 -4
  8. package/dist/{chunk-SJZML7WZ.js → chunk-6BFN6VNL.js} +6 -6
  9. package/dist/{chunk-QHOPIA4F.js → chunk-6PILE32P.js} +21 -21
  10. package/dist/chunk-6S5MN3NA.js +124 -0
  11. package/dist/{chunk-LULBYR67.js → chunk-AOL4JRXL.js} +5 -5
  12. package/dist/{chunk-DXWYZA7B.js → chunk-BGMZPA2F.js} +5 -5
  13. package/dist/{chunk-T3R75LJS.js → chunk-CXEXLFVL.js} +5 -5
  14. package/dist/{chunk-KARIQA23.js → chunk-EBLNHWW6.js} +7 -7
  15. package/dist/{chunk-M5B7W2WD.js → chunk-FF3D4ZXI.js} +5 -5
  16. package/dist/{chunk-ZRVGF6PQ.js → chunk-GUTFOYMZ.js} +21 -21
  17. package/dist/{chunk-PHNHT4MK.js → chunk-GZY7QBBF.js} +5 -5
  18. package/dist/{chunk-HJ4SIXGI.js → chunk-HTKLY54F.js} +13 -13
  19. package/dist/{chunk-IY4M4D5Q.js → chunk-HXIFBR5H.js} +5 -5
  20. package/dist/{chunk-MDAN6X4P.js → chunk-L2BUQUNG.js} +5 -5
  21. package/dist/{chunk-6I5EQPM7.js → chunk-L6V54WGO.js} +5 -5
  22. package/dist/{chunk-IC367FSR.js → chunk-LZ2DP3UC.js} +5 -5
  23. package/dist/{chunk-VU7EIH44.js → chunk-MD47SEWA.js} +12 -12
  24. package/dist/{chunk-DRWHCM7T.js → chunk-NUKBOD54.js} +7 -7
  25. package/dist/{chunk-FZ3FCTAG.js → chunk-PBUYAEEE.js} +12 -12
  26. package/dist/{chunk-B7O5EM2H.js → chunk-PP22IZ7I.js} +5 -5
  27. package/dist/{chunk-WSZXPLJQ.js → chunk-TZJROXB3.js} +4 -4
  28. package/dist/{chunk-TQCLUNM2.js → chunk-VNIE2AZB.js} +4 -4
  29. package/dist/{chunk-5FYOIBG5.js → chunk-ZB2V476P.js} +8 -8
  30. package/dist/cli/checkUnsupportedDataProxy.js +29 -28
  31. package/dist/cli/completion-values.d.ts +24 -0
  32. package/dist/cli/completion-values.js +47 -0
  33. package/dist/cli/schemaContext.js +30 -29
  34. package/dist/cli/types.d.ts +16 -0
  35. package/dist/engine-commands/errorHelpers.js +4 -4
  36. package/dist/engine-commands/formatSchema.js +28 -27
  37. package/dist/engine-commands/getConfig.js +9 -9
  38. package/dist/engine-commands/getDmmf.js +10 -10
  39. package/dist/engine-commands/getEngineVersion.js +5 -5
  40. package/dist/engine-commands/getEnginesInfo.js +6 -6
  41. package/dist/engine-commands/index.js +40 -39
  42. package/dist/engine-commands/lintSchema.js +8 -8
  43. package/dist/engine-commands/mergeSchemas.js +9 -9
  44. package/dist/engine-commands/queryEngineCommons.js +6 -6
  45. package/dist/engine-commands/validate.js +9 -9
  46. package/dist/get-generators/getGenerators.js +31 -30
  47. package/dist/highlight/highlight.js +5 -5
  48. package/dist/index.d.ts +2 -1
  49. package/dist/index.js +83 -59
  50. package/dist/resolveBinary.js +7 -7
  51. package/dist/schemaEngineCommands.js +8 -8
  52. package/dist/utils/getVersionFromPackageJson.js +3 -3
  53. package/dist/utils/missingDatasource.js +4 -4
  54. package/dist/utils/missingGeneratorMessage.js +6 -6
  55. package/dist/wasm.js +5 -5
  56. package/package.json +14 -14
@@ -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_EBOYZFET_exports = {};
20
- __export(chunk_EBOYZFET_exports, {
19
+ var chunk_3GIVRMID_exports = {};
20
+ __export(chunk_3GIVRMID_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_EBOYZFET_exports);
24
- var import_chunk_SJZML7WZ = require("./chunk-SJZML7WZ.js");
25
- var packageJson = (0, import_chunk_SJZML7WZ.require_package)();
23
+ module.exports = __toCommonJS(chunk_3GIVRMID_exports);
24
+ var import_chunk_LZ2DP3UC = require("./chunk-LZ2DP3UC.js");
25
+ var packageJson = (0, import_chunk_LZ2DP3UC.require_package)();
26
26
  var version = packageJson.version;
@@ -26,17 +26,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_4NBMRBMA_exports = {};
30
- __export(chunk_4NBMRBMA_exports, {
29
+ var chunk_44CAWTX7_exports = {};
30
+ __export(chunk_44CAWTX7_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  externalToInternalDmmf: () => import_get_dmmf2.externalToInternalDmmf,
33
33
  getDMMF: () => getDMMF,
34
34
  getInternalDMMF: () => getInternalDMMF
35
35
  });
36
- module.exports = __toCommonJS(chunk_4NBMRBMA_exports);
36
+ module.exports = __toCommonJS(chunk_44CAWTX7_exports);
37
37
  var import_chunk_IL7PSY44 = require("./chunk-IL7PSY44.js");
38
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
39
- var import_chunk_PHNHT4MK = require("./chunk-PHNHT4MK.js");
38
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
39
+ var import_chunk_4C6VSKUV = require("./chunk-4C6VSKUV.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
41
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
42
42
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -44,7 +44,7 @@ var import_debug = __toESM(require("@prisma/debug"));
44
44
  var import_get_dmmf = require("@prisma/get-dmmf");
45
45
  var import_get_dmmf2 = require("@prisma/get-dmmf");
46
46
  var debug = (0, import_debug.default)("prisma:getDMMF");
47
- var debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getDmmfWasm");
47
+ var debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getDmmfWasm");
48
48
  var GetDmmfError = class extends Error {
49
49
  constructor(params) {
50
50
  const constructedErrorMessage = (0, import_chunk_XKZ6CBLA.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: getDmmf]`;
62
- super((0, import_chunk_PHNHT4MK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_4C6VSKUV.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "GetDmmfError";
64
64
  }
65
65
  };
@@ -100,5 +100,5 @@ function mapWasmPanicToGetDmmfError(error, reason) {
100
100
  return panic;
101
101
  }
102
102
  const errorOutput = error.message;
103
- return new GetDmmfError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason }));
103
+ return new GetDmmfError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason }));
104
104
  }
@@ -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_QQ2KCQEQ_exports = {};
20
- __export(chunk_QQ2KCQEQ_exports, {
19
+ var chunk_4C6VSKUV_exports = {};
20
+ __export(chunk_4C6VSKUV_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_QQ2KCQEQ_exports);
24
- var import_chunk_EBOYZFET = require("./chunk-EBOYZFET.js");
23
+ module.exports = __toCommonJS(chunk_4C6VSKUV_exports);
25
24
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
25
+ var import_chunk_AOL4JRXL = require("./chunk-AOL4JRXL.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_EBOYZFET.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_AOL4JRXL.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_UGESASQO_exports = {};
30
- __export(chunk_UGESASQO_exports, {
29
+ var chunk_4VJ5L3MB_exports = {};
30
+ __export(chunk_4VJ5L3MB_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_UGESASQO_exports);
35
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
- var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
34
+ module.exports = __toCommonJS(chunk_4VJ5L3MB_exports);
35
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
37
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_QQ2KCQEQ = require("./chunk-QQ2KCQEQ.js");
39
- var import_chunk_M5B7W2WD = require("./chunk-M5B7W2WD.js");
37
+ var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
+ var import_chunk_4C6VSKUV = require("./chunk-4C6VSKUV.js");
39
+ var import_chunk_FF3D4ZXI = require("./chunk-FF3D4ZXI.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_QQ2KCQEQ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_4C6VSKUV.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_M5B7W2WD.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_FF3D4ZXI.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,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_QIIB2GKK_exports = {};
30
- __export(chunk_QIIB2GKK_exports, {
29
+ var chunk_4YZJJPK2_exports = {};
30
+ __export(chunk_4YZJJPK2_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig
33
33
  });
34
- module.exports = __toCommonJS(chunk_QIIB2GKK_exports);
35
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
- var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
34
+ module.exports = __toCommonJS(chunk_4YZJJPK2_exports);
35
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
37
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_QQ2KCQEQ = require("./chunk-QQ2KCQEQ.js");
39
- var import_chunk_M5B7W2WD = require("./chunk-M5B7W2WD.js");
37
+ var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
+ var import_chunk_GZY7QBBF = require("./chunk-GZY7QBBF.js");
39
+ var import_chunk_PP22IZ7I = require("./chunk-PP22IZ7I.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");
@@ -61,22 +61,22 @@ ${detailsHeader} ${message}`;
61
61
  }).exhaustive();
62
62
  const errorMessageWithContext = `${constructedErrorMessage}
63
63
  [Context: getConfig]`;
64
- super((0, import_chunk_QQ2KCQEQ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
+ super((0, import_chunk_GZY7QBBF.addVersionDetailsToErrorMessage)(errorMessageWithContext));
65
65
  this.name = "GetConfigError";
66
66
  }
67
67
  };
68
68
  async function getConfig(options) {
69
- const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getConfigWasm");
69
+ const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getConfigWasm");
70
70
  debug(`Using getConfig Wasm`);
71
71
  const configEither = (0, import_function.pipe)(
72
72
  (0, import_chunk_5DBOS77Y.tryCatch)(
73
73
  () => {
74
74
  if (process.env.FORCE_PANIC_GET_CONFIG) {
75
75
  debug("Triggering a Rust panic...");
76
- import_chunk_M5B7W2WD.prismaSchemaWasm.debug_panic();
76
+ import_chunk_PP22IZ7I.prismaSchemaWasm.debug_panic();
77
77
  }
78
78
  const params = JSON.stringify({ prismaSchema: options.datamodel });
79
- return import_chunk_M5B7W2WD.prismaSchemaWasm.get_config(params);
79
+ return import_chunk_PP22IZ7I.prismaSchemaWasm.get_config(params);
80
80
  },
81
81
  (e) => ({
82
82
  type: "wasm-error",
@@ -134,12 +134,12 @@ async function getConfig(options) {
134
134
  return panic;
135
135
  }
136
136
  const errorOutput = e.error.message;
137
- return new GetConfigError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
137
+ return new GetConfigError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
138
138
  }).with({ type: "validation-error" }, (e) => {
139
139
  return new GetConfigError({
140
140
  _tag: "parsed",
141
141
  errorCode: SCHEMA_VALIDATION_ERROR_CODE,
142
- reason: (0, import_chunk_WSZXPLJQ.createSchemaValidationError)(e.reason),
142
+ reason: (0, import_chunk_TZJROXB3.createSchemaValidationError)(e.reason),
143
143
  message: formatErrors(e.error)
144
144
  });
145
145
  }).otherwise((e) => {
@@ -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_PC5G4IPR_exports = {};
30
- __export(chunk_PC5G4IPR_exports, {
29
+ var chunk_5P4WR3QW_exports = {};
30
+ __export(chunk_5P4WR3QW_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_PC5G4IPR_exports);
35
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
- var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
34
+ module.exports = __toCommonJS(chunk_5P4WR3QW_exports);
35
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
37
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_PHNHT4MK = require("./chunk-PHNHT4MK.js");
39
- var import_chunk_B7O5EM2H = require("./chunk-B7O5EM2H.js");
37
+ var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
+ var import_chunk_GZY7QBBF = require("./chunk-GZY7QBBF.js");
39
+ var import_chunk_PP22IZ7I = require("./chunk-PP22IZ7I.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_PHNHT4MK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_GZY7QBBF.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_B7O5EM2H.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_PP22IZ7I.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,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_WMYLXKKD_exports = {};
30
- __export(chunk_WMYLXKKD_exports, {
29
+ var chunk_5PJQQKQI_exports = {};
30
+ __export(chunk_5PJQQKQI_exports, {
31
31
  BinaryType: () => import_fetch_engine.BinaryType,
32
32
  engineEnvVarMap: () => import_fetch_engine.engineEnvVarMap,
33
33
  maybeCopyToTmp: () => maybeCopyToTmp,
34
34
  resolveBinary: () => resolveBinary,
35
35
  safeResolveBinary: () => safeResolveBinary
36
36
  });
37
- module.exports = __toCommonJS(chunk_WMYLXKKD_exports);
38
- var import_chunk_E476ARWS = require("./chunk-E476ARWS.js");
37
+ module.exports = __toCommonJS(chunk_5PJQQKQI_exports);
39
38
  var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
39
+ var import_chunk_E476ARWS = require("./chunk-E476ARWS.js");
40
40
  var import_chunk_TWSLDIFL = require("./chunk-TWSLDIFL.js");
41
41
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
42
42
  var import_chunk_5VQNKCKW = require("./chunk-5VQNKCKW.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_SJZML7WZ_exports = {};
20
- __export(chunk_SJZML7WZ_exports, {
19
+ var chunk_6BFN6VNL_exports = {};
20
+ __export(chunk_6BFN6VNL_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_SJZML7WZ_exports);
23
+ module.exports = __toCommonJS(chunk_6BFN6VNL_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: "7.9.0-dev.9",
29
+ version: "7.10.0-dev.1",
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",
@@ -101,8 +101,8 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
101
101
  "@prisma/generator-helper": "workspace:*",
102
102
  "@prisma/get-dmmf": "workspace:*",
103
103
  "@prisma/get-platform": "workspace:*",
104
- "@prisma/prisma-schema-wasm": "7.8.0-6.3c6e192761c0362d496ed980de936e2f3cebcd3a",
105
- "@prisma/schema-engine-wasm": "7.8.0-6.3c6e192761c0362d496ed980de936e2f3cebcd3a",
104
+ "@prisma/prisma-schema-wasm": "7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad",
105
+ "@prisma/schema-engine-wasm": "7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad",
106
106
  "@prisma/schema-files-loader": "workspace:*",
107
107
  "@streamparser/json": "0.0.22",
108
108
  arg: "5.0.2",
@@ -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_QHOPIA4F_exports = {};
30
- __export(chunk_QHOPIA4F_exports, {
29
+ var chunk_6PILE32P_exports = {};
30
+ __export(chunk_6PILE32P_exports, {
31
31
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
32
32
  forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
33
33
  formatSchema: () => formatSchema,
@@ -40,22 +40,22 @@ __export(chunk_QHOPIA4F_exports, {
40
40
  processSchemaResult: () => processSchemaResult,
41
41
  skipIndex: () => skipIndex
42
42
  });
43
- module.exports = __toCommonJS(chunk_QHOPIA4F_exports);
43
+ module.exports = __toCommonJS(chunk_6PILE32P_exports);
44
44
  var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
45
45
  var import_chunk_DZ4QWHTB = require("./chunk-DZ4QWHTB.js");
46
46
  var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
47
47
  var import_chunk_LRU47BGE = require("./chunk-LRU47BGE.js");
48
- var import_chunk_GXW4NTU2 = require("./chunk-GXW4NTU2.js");
49
48
  var import_chunk_5FJ3MENK = require("./chunk-5FJ3MENK.js");
50
- var import_chunk_DXWYZA7B = require("./chunk-DXWYZA7B.js");
51
- var import_chunk_DRWHCM7T = require("./chunk-DRWHCM7T.js");
49
+ var import_chunk_NUKBOD54 = require("./chunk-NUKBOD54.js");
50
+ var import_chunk_GXW4NTU2 = require("./chunk-GXW4NTU2.js");
51
+ var import_chunk_BGMZPA2F = require("./chunk-BGMZPA2F.js");
52
52
  var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
53
- var import_chunk_5FYOIBG5 = require("./chunk-5FYOIBG5.js");
54
- var import_chunk_IY4M4D5Q = require("./chunk-IY4M4D5Q.js");
55
- var import_chunk_UGESASQO = require("./chunk-UGESASQO.js");
56
- var import_chunk_QIIB2GKK = require("./chunk-QIIB2GKK.js");
57
- var import_chunk_M5B7W2WD = require("./chunk-M5B7W2WD.js");
53
+ var import_chunk_4YZJJPK2 = require("./chunk-4YZJJPK2.js");
54
+ var import_chunk_ZB2V476P = require("./chunk-ZB2V476P.js");
55
+ var import_chunk_L2BUQUNG = require("./chunk-L2BUQUNG.js");
56
+ var import_chunk_5P4WR3QW = require("./chunk-5P4WR3QW.js");
58
57
  var import_chunk_2BXDHSSY = require("./chunk-2BXDHSSY.js");
58
+ var import_chunk_PP22IZ7I = require("./chunk-PP22IZ7I.js");
59
59
  var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
60
60
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
61
61
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
@@ -76,7 +76,7 @@ var debug = (0, import_debug.default)("prisma:format");
76
76
  async function formatSchema({ schemas }, inputFormattingOptions) {
77
77
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
78
78
  handleFormatPanic(() => {
79
- import_chunk_M5B7W2WD.prismaSchemaWasm.debug_panic();
79
+ import_chunk_PP22IZ7I.prismaSchemaWasm.debug_panic();
80
80
  });
81
81
  }
82
82
  const defaultFormattingOptions = {
@@ -93,10 +93,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
93
93
  const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
94
94
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
95
95
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
96
- const lintDiagnostics2 = (0, import_chunk_IY4M4D5Q.lintSchema)({ schemas: formattedMultipleSchemas2 });
96
+ const lintDiagnostics2 = (0, import_chunk_L2BUQUNG.lintSchema)({ schemas: formattedMultipleSchemas2 });
97
97
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
98
98
  });
99
- const lintWarnings = (0, import_chunk_IY4M4D5Q.getLintWarningsAsText)(lintDiagnostics);
99
+ const lintWarnings = (0, import_chunk_L2BUQUNG.getLintWarningsAsText)(lintDiagnostics);
100
100
  if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
101
101
  console.warn(lintWarnings);
102
102
  }
@@ -123,7 +123,7 @@ function handleFormatPanic(tryCb) {
123
123
  }
124
124
  }
125
125
  function formatWasm(schema, documentFormattingParams) {
126
- const formattedSchema = import_chunk_M5B7W2WD.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
126
+ const formattedSchema = import_chunk_PP22IZ7I.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
127
127
  return formattedSchema;
128
128
  }
129
129
  async function loadSchemaContext({ schemaPath, printLoadMessage, allowNull, schemaPathArgumentName, cwd } = {
@@ -152,7 +152,7 @@ async function processSchemaResult({
152
152
  if (printLoadMessage) {
153
153
  (0, import_chunk_2BXDHSSY.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
154
154
  }
155
- const configFromPsl = await (0, import_chunk_QIIB2GKK.getConfig)({ datamodel: schemaResult.schemas });
155
+ const configFromPsl = await (0, import_chunk_4YZJJPK2.getConfig)({ datamodel: schemaResult.schemas });
156
156
  const primaryDatasource = configFromPsl.datasources.at(0);
157
157
  return {
158
158
  schemaFiles: schemaResult.schemas,
@@ -203,15 +203,15 @@ async function getGenerators(options) {
203
203
  throw new Error(`no schema provided for getGenerators`);
204
204
  }
205
205
  if (!schemaContext.primaryDatasource) {
206
- throw new Error(import_chunk_DXWYZA7B.missingDatasource);
206
+ throw new Error(import_chunk_BGMZPA2F.missingDatasource);
207
207
  }
208
208
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
209
- const dmmf = await (0, import_chunk_5FYOIBG5.getDMMF)({ datamodel: schemaContext.schemaFiles });
209
+ const dmmf = await (0, import_chunk_ZB2V476P.getDMMF)({ datamodel: schemaContext.schemaFiles });
210
210
  if (dmmf.datamodel.models.length === 0 && !allowNoModels) {
211
211
  if (schemaContext.primaryDatasource.provider === "mongodb") {
212
- throw new Error(import_chunk_DRWHCM7T.missingModelMessageMongoDB);
212
+ throw new Error(import_chunk_NUKBOD54.missingModelMessageMongoDB);
213
213
  }
214
- throw new Error(import_chunk_DRWHCM7T.missingModelMessage);
214
+ throw new Error(import_chunk_NUKBOD54.missingModelMessage);
215
215
  }
216
216
  const generatorConfigs = filterGenerators(overrideGenerators || schemaContext.generators, generatorNames);
217
217
  await validateGenerators(generatorConfigs);
@@ -254,7 +254,7 @@ You need to define \`output\` in the generator block in the schema file.`
254
254
  fromEnvVar: null
255
255
  };
256
256
  }
257
- const datamodel = (0, import_chunk_UGESASQO.mergeSchemas)({ schemas: schemaContext.schemaFiles });
257
+ const datamodel = (0, import_chunk_5P4WR3QW.mergeSchemas)({ schemas: schemaContext.schemaFiles });
258
258
  const options2 = {
259
259
  datamodel,
260
260
  datasources: schemaContext.datasources,
@@ -0,0 +1,124 @@
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_6S5MN3NA_exports = {};
20
+ __export(chunk_6S5MN3NA_exports, {
21
+ completionApiKeyHint: () => completionApiKeyHint,
22
+ completionClientOutputPaths: () => completionClientOutputPaths,
23
+ completionCompositeTypeDepths: () => completionCompositeTypeDepths,
24
+ completionConfigPaths: () => completionConfigPaths,
25
+ completionDatabaseIdHint: () => completionDatabaseIdHint,
26
+ completionDatabaseSchemas: () => completionDatabaseSchemas,
27
+ completionDatasourceProviders: () => completionDatasourceProviders,
28
+ completionDatasourceUrls: () => completionDatasourceUrls,
29
+ completionDevDbPorts: () => completionDevDbPorts,
30
+ completionDevHttpPorts: () => completionDevHttpPorts,
31
+ completionDevServerNames: () => completionDevServerNames,
32
+ completionDevShadowDbPorts: () => completionDevShadowDbPorts,
33
+ completionDiffOutputPaths: () => completionDiffOutputPaths,
34
+ completionGeneratorNames: () => completionGeneratorNames,
35
+ completionGeneratorProviders: () => completionGeneratorProviders,
36
+ completionMigrationIds: () => completionMigrationIds,
37
+ completionMigrationNames: () => completionMigrationNames,
38
+ completionMigrationsDirPaths: () => completionMigrationsDirPaths,
39
+ completionPreviewFeatures: () => completionPreviewFeatures,
40
+ completionSchemaPaths: () => completionSchemaPaths,
41
+ completionSqlScriptPaths: () => completionSqlScriptPaths,
42
+ completionStudioBrowsers: () => completionStudioBrowsers,
43
+ completionStudioPorts: () => completionStudioPorts
44
+ });
45
+ module.exports = __toCommonJS(chunk_6S5MN3NA_exports);
46
+ var completionSchemaPaths = [
47
+ { value: "prisma/schema.prisma", description: "Default schema path" },
48
+ { value: "./schema.prisma", description: "Schema in project root" }
49
+ ];
50
+ var completionConfigPaths = [
51
+ { value: "prisma.config.ts", description: "Default config path" }
52
+ ];
53
+ var completionDatasourceUrls = [
54
+ { value: "postgresql://", description: "PostgreSQL connection string" },
55
+ { value: "mysql://", description: "MySQL connection string" },
56
+ { value: "file:", description: "SQLite connection string" },
57
+ { value: "mongodb://", description: "MongoDB connection string" },
58
+ { value: "sqlserver://", description: "SQL Server connection string" }
59
+ ];
60
+ var completionApiKeyHint = [{ value: "<your-api-key>", description: "Workspace API key" }];
61
+ var completionDatabaseIdHint = [
62
+ { value: "db_", description: "Database ID prefix (e.g. db_abc123)" }
63
+ ];
64
+ var completionGeneratorNames = [
65
+ { value: "prisma-client", description: "Prisma Client generator" },
66
+ { value: "prisma-client-js", description: "Legacy Prisma Client JS generator" }
67
+ ];
68
+ var completionClientOutputPaths = [
69
+ { value: "./generated/prisma", description: "Common client output path" },
70
+ { value: "../generated/prisma", description: "Alternative client output path" }
71
+ ];
72
+ var completionPreviewFeatures = [
73
+ { value: "typedSql", description: "TypedSQL preview feature" }
74
+ ];
75
+ var completionSqlScriptPaths = [{ value: "./script.sql", description: "SQL script file" }];
76
+ var completionMigrationsDirPaths = [
77
+ { value: "prisma/migrations", description: "Default migrations directory" },
78
+ { value: "./migrations", description: "Custom migrations directory" }
79
+ ];
80
+ var completionDiffOutputPaths = [{ value: "diff.sql", description: "SQL diff output file" }];
81
+ var completionMigrationNames = [
82
+ { value: "init", description: "Initial migration name" },
83
+ { value: "add_users", description: "Example migration name" }
84
+ ];
85
+ var completionMigrationIds = [
86
+ { value: "20201231000000_add_users_table", description: "Example migration ID" }
87
+ ];
88
+ var completionCompositeTypeDepths = [
89
+ { value: "-1", description: "Infinite depth (default)" },
90
+ { value: "0", description: "Off" },
91
+ { value: "2", description: "Two levels deep" }
92
+ ];
93
+ var completionDatabaseSchemas = [
94
+ { value: "public", description: "PostgreSQL default schema" }
95
+ ];
96
+ var completionDatasourceProviders = [
97
+ { value: "postgresql", description: "PostgreSQL" },
98
+ { value: "mysql", description: "MySQL" },
99
+ { value: "sqlite", description: "SQLite" },
100
+ { value: "mongodb", description: "MongoDB" },
101
+ { value: "sqlserver", description: "SQL Server" },
102
+ { value: "cockroachdb", description: "CockroachDB" }
103
+ ];
104
+ var completionGeneratorProviders = [
105
+ { value: "prisma-client", description: "Prisma Client" },
106
+ { value: "prisma-client-js", description: "Legacy Prisma Client JS" }
107
+ ];
108
+ var completionStudioPorts = [
109
+ { value: "51212", description: "Default Studio port" },
110
+ { value: "5555", description: "Common custom port" },
111
+ { value: "3000", description: "Alternative port" }
112
+ ];
113
+ var completionStudioBrowsers = [
114
+ { value: "none", description: "Do not open browser" },
115
+ { value: "chrome", description: "Google Chrome" },
116
+ { value: "firefox", description: "Mozilla Firefox" },
117
+ { value: "safari", description: "Safari" }
118
+ ];
119
+ var completionDevServerNames = [{ value: "default", description: "Default server name" }];
120
+ var completionDevHttpPorts = [{ value: "51213", description: "Default HTTP server port" }];
121
+ var completionDevDbPorts = [{ value: "51214", description: "Default database port" }];
122
+ var completionDevShadowDbPorts = [
123
+ { value: "51215", description: "Default shadow database port" }
124
+ ];
@@ -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_LULBYR67_exports = {};
20
- __export(chunk_LULBYR67_exports, {
19
+ var chunk_AOL4JRXL_exports = {};
20
+ __export(chunk_AOL4JRXL_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_LULBYR67_exports);
24
- var import_chunk_IC367FSR = require("./chunk-IC367FSR.js");
25
- var packageJson = (0, import_chunk_IC367FSR.require_package)();
23
+ module.exports = __toCommonJS(chunk_AOL4JRXL_exports);
24
+ var import_chunk_6BFN6VNL = require("./chunk-6BFN6VNL.js");
25
+ var packageJson = (0, import_chunk_6BFN6VNL.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_DXWYZA7B_exports = {};
20
- __export(chunk_DXWYZA7B_exports, {
19
+ var chunk_BGMZPA2F_exports = {};
20
+ __export(chunk_BGMZPA2F_exports, {
21
21
  missingDatasource: () => missingDatasource
22
22
  });
23
- module.exports = __toCommonJS(chunk_DXWYZA7B_exports);
23
+ module.exports = __toCommonJS(chunk_BGMZPA2F_exports);
24
24
  var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
25
- var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
25
+ var import_chunk_VNIE2AZB = require("./chunk-VNIE2AZB.js");
26
26
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
27
27
  var missingDatasource = `
28
28
  You don't have any ${(0, import_chunk_PG5FDKSF.bold)("datasource")} defined in your ${(0, import_chunk_PG5FDKSF.bold)("schema.prisma")}.
29
29
  You can define a datasource like this:
30
30
 
31
31
  ${(0, import_chunk_PG5FDKSF.bold)(
32
- (0, import_chunk_TQCLUNM2.highlightDatamodel)(`datasource db {
32
+ (0, import_chunk_VNIE2AZB.highlightDatamodel)(`datasource db {
33
33
  provider = "postgresql"
34
34
  }`)
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_T3R75LJS_exports = {};
20
- __export(chunk_T3R75LJS_exports, {
19
+ var chunk_CXEXLFVL_exports = {};
20
+ __export(chunk_CXEXLFVL_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_T3R75LJS_exports);
27
+ module.exports = __toCommonJS(chunk_CXEXLFVL_exports);
28
28
  var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
29
- var import_chunk_WMYLXKKD = require("./chunk-WMYLXKKD.js");
29
+ var import_chunk_5PJQQKQI = require("./chunk-5PJQQKQI.js");
30
30
  var import_fetch_engine = require("@prisma/fetch-engine");
31
31
  var SchemaEngineExitCode = /* @__PURE__ */ ((SchemaEngineExitCode2) => {
32
32
  SchemaEngineExitCode2[SchemaEngineExitCode2["Success"] = 0] = "Success";
@@ -137,7 +137,7 @@ async function execaCommand({
137
137
  schemaEnginePath,
138
138
  engineCommandName
139
139
  }) {
140
- schemaEnginePath = schemaEnginePath || await (0, import_chunk_WMYLXKKD.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
140
+ schemaEnginePath = schemaEnginePath || await (0, import_chunk_5PJQQKQI.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
141
141
  try {
142
142
  return await (0, import_chunk_JOIHHXR6.execa)(
143
143
  schemaEnginePath,