@prisma/internals 6.20.0-dev.1 → 6.20.0-dev.11

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 (128) hide show
  1. package/dist/{chunk-TBR6SNKL.js → chunk-27NCZWR5.js} +5 -5
  2. package/dist/{chunk-FHZ5QJLR.js → chunk-4JX4AYC6.js} +5 -5
  3. package/dist/{chunk-XNNQS646.js → chunk-4LKQAQHE.js} +8 -10
  4. package/dist/{chunk-TQFONRJP.js → chunk-5BRXEOYH.js} +5 -5
  5. package/dist/{chunk-RS2R7COT.js → chunk-5I4ERIIY.js} +3 -9
  6. package/dist/chunk-5SAWCTGN.js +46 -0
  7. package/dist/{chunk-LV27YCGC.js → chunk-63BLJTNP.js} +12 -12
  8. package/dist/{chunk-SOKSKSEX.js → chunk-6XDWK3XF.js} +16 -38
  9. package/dist/{chunk-WFNB7VRA.js → chunk-ARC7TW3L.js} +4 -14
  10. package/dist/{chunk-XUQH2KVG.js → chunk-AYH4F3GT.js} +5 -5
  11. package/dist/{chunk-7QC5VORA.js → chunk-BGMZPA2F.js} +5 -6
  12. package/dist/{chunk-BVJP43JS.js → chunk-BXIKQUP5.js} +7 -7
  13. package/dist/{chunk-2GUGGLPK.js → chunk-CI7RDRVK.js} +52 -133
  14. package/dist/{chunk-FYZCPL2Z.js → chunk-FASYSGWP.js} +3 -6
  15. package/dist/{chunk-4CGPN5SR.js → chunk-GJSFP4V4.js} +3 -9
  16. package/dist/{chunk-4JCVHBYR.js → chunk-GL7OANR6.js} +5 -5
  17. package/dist/{chunk-UQUWZJVN.js → chunk-GZLJZGHX.js} +5 -5
  18. package/dist/{chunk-JTS4UPHJ.js → chunk-HCXWQQTN.js} +5 -5
  19. package/dist/{chunk-AX5N26KG.js → chunk-K4IC7NPI.js} +15 -10
  20. package/dist/{chunk-57ULTP7W.js → chunk-KV5M6BWD.js} +13 -13
  21. package/dist/{chunk-UPP63U4Q.js → chunk-KXBM4OZ4.js} +11 -11
  22. package/dist/{chunk-OAT7ZJED.js → chunk-MNP6VO5F.js} +7 -20
  23. package/dist/{chunk-BCQZ6JQE.js → chunk-NBWRGVYR.js} +4 -6
  24. package/dist/{chunk-CCLAMTCA.js → chunk-NHM75P2J.js} +7 -9
  25. package/dist/{chunk-EYVG6XQS.js → chunk-OKVM3CW4.js} +3 -39
  26. package/dist/{chunk-KFYHEWEK.js → chunk-OSDEWK4V.js} +12 -12
  27. package/dist/{chunk-E4H6V3Z4.js → chunk-PHCC4RQK.js} +11 -11
  28. package/dist/{chunk-6JXBYDIF.js → chunk-PHOJ2NUG.js} +16 -38
  29. package/dist/{chunk-F2OZV76L.js → chunk-PKOQQT7I.js} +7 -7
  30. package/dist/{chunk-75BIJ5PX.js → chunk-Q5XW7CMJ.js} +9 -9
  31. package/dist/{chunk-OSHZ4P3G.js → chunk-SP2ETLT2.js} +5 -5
  32. package/dist/{chunk-UHI6VYFX.js → chunk-TRAG7WPX.js} +15 -11
  33. package/dist/{chunk-ADEOIJ4A.js → chunk-UIA6QRTF.js} +5 -5
  34. package/dist/{chunk-QJ3QPUM5.js → chunk-UMWR2ZFI.js} +5 -5
  35. package/dist/{chunk-5GGLNSGY.js → chunk-UUZVVTOP.js} +5 -5
  36. package/dist/{chunk-4BHQFID2.js → chunk-UYMUOW4P.js} +52 -133
  37. package/dist/{chunk-GMW36QQF.js → chunk-V6DWK6TN.js} +7 -7
  38. package/dist/{chunk-WYQJ4JWO.js → chunk-VIZCJ7MZ.js} +13 -13
  39. package/dist/{chunk-TQCLUNM2.js → chunk-VNIE2AZB.js} +4 -4
  40. package/dist/{chunk-TZJROXB3.js → chunk-WSZXPLJQ.js} +4 -4
  41. package/dist/{chunk-CKEEY4OR.js → chunk-XV3WHAKH.js} +5 -5
  42. package/dist/{chunk-JOIIWB3U.js → chunk-YV4IFLW4.js} +128 -129
  43. package/dist/{chunk-HFFWZTVM.js → chunk-YXCPS3WU.js} +5 -15
  44. package/dist/cli/checkUnsupportedDataProxy.d.ts +7 -9
  45. package/dist/cli/checkUnsupportedDataProxy.js +52 -62
  46. package/dist/cli/directoryConfig.d.ts +5 -2
  47. package/dist/cli/directoryConfig.js +2 -2
  48. package/dist/cli/getGeneratorSuccessMessage.js +2 -3
  49. package/dist/cli/getSchema.d.ts +1 -15
  50. package/dist/cli/getSchema.js +4 -5
  51. package/dist/cli/hashes.js +4 -4
  52. package/dist/cli/schemaContext.d.ts +3 -20
  53. package/dist/cli/schemaContext.js +53 -62
  54. package/dist/cli/types.d.ts +1 -1
  55. package/dist/engine-commands/errorHelpers.js +4 -4
  56. package/dist/engine-commands/formatSchema.js +51 -61
  57. package/dist/engine-commands/getConfig.d.ts +1 -5
  58. package/dist/engine-commands/getConfig.js +10 -13
  59. package/dist/engine-commands/getDmmf.js +10 -10
  60. package/dist/engine-commands/getEngineVersion.js +4 -8
  61. package/dist/engine-commands/getEnginesInfo.d.ts +0 -1
  62. package/dist/engine-commands/getEnginesInfo.js +5 -8
  63. package/dist/engine-commands/index.d.ts +1 -1
  64. package/dist/engine-commands/index.js +61 -73
  65. package/dist/engine-commands/lintSchema.js +9 -9
  66. package/dist/engine-commands/mergeSchemas.js +10 -10
  67. package/dist/engine-commands/queryEngineCommons.js +6 -6
  68. package/dist/engine-commands/validate.js +10 -10
  69. package/dist/get-generators/getGenerators.d.ts +0 -2
  70. package/dist/get-generators/getGenerators.js +54 -64
  71. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  72. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  73. package/dist/get-generators/utils/getBinaryPathsByVersion.js +4 -4
  74. package/dist/getPackedPackage.js +3 -3
  75. package/dist/highlight/highlight.js +5 -5
  76. package/dist/index.d.ts +4 -16
  77. package/dist/index.js +96 -120
  78. package/dist/resolveBinary.js +6 -6
  79. package/dist/schemaEngineCommands.js +7 -7
  80. package/dist/sendPanic.js +2 -3
  81. package/dist/types.d.ts +15 -0
  82. package/dist/utils/fs-functional.js +10 -10
  83. package/dist/utils/fs-utils.js +8 -8
  84. package/dist/utils/getVersionFromPackageJson.js +3 -3
  85. package/dist/utils/handlePanic.js +4 -5
  86. package/dist/utils/missingDatasource.js +4 -4
  87. package/dist/utils/missingGeneratorMessage.js +6 -6
  88. package/dist/utils/toSchemasContainer.d.ts +1 -1
  89. package/dist/utils/toSchemasContainer.js +3 -3
  90. package/dist/utils/validatePrismaConfigWithDatasource.d.ts +15 -0
  91. package/dist/utils/{handleEngineLoadingErrors.js → validatePrismaConfigWithDatasource.js} +7 -6
  92. package/dist/wasm.js +5 -5
  93. package/package.json +15 -17
  94. package/dist/chunk-3FP46GUV.js +0 -471
  95. package/dist/chunk-46ABODUM.js +0 -186
  96. package/dist/chunk-6TTRTZXU.js +0 -37
  97. package/dist/chunk-D4VDA2TZ.js +0 -66
  98. package/dist/chunk-DZYINYAA.js +0 -68
  99. package/dist/chunk-ERSH2BQA.js +0 -58
  100. package/dist/chunk-HO5HRHFZ.js +0 -30
  101. package/dist/chunk-KDHESRKE.js +0 -49
  102. package/dist/chunk-PZMRR772.js +0 -41
  103. package/dist/chunk-RFB2U4GQ.js +0 -41
  104. package/dist/chunk-T2PM5TKT.js +0 -55
  105. package/dist/cli/checkUnsupportedSchemaEngineWasm.d.ts +0 -22
  106. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +0 -135
  107. package/dist/client/getClientEngineType.d.ts +0 -7
  108. package/dist/client/getClientEngineType.js +0 -26
  109. package/dist/dotenvExpand.d.ts +0 -35
  110. package/dist/dotenvExpand.js +0 -25
  111. package/dist/utils/__tests__/maskSchema.test.js +0 -23
  112. package/dist/utils/cloudflareD1.d.ts +0 -5
  113. package/dist/utils/cloudflareD1.js +0 -27
  114. package/dist/utils/getEnvPaths.d.ts +0 -14
  115. package/dist/utils/getEnvPaths.js +0 -29
  116. package/dist/utils/getMigrateConfigDir.d.ts +0 -2
  117. package/dist/utils/getMigrateConfigDir.js +0 -25
  118. package/dist/utils/handleEngineLoadingErrors.d.ts +0 -8
  119. package/dist/utils/load.d.ts +0 -6
  120. package/dist/utils/load.js +0 -28
  121. package/dist/utils/loadEnvFile.d.ts +0 -10
  122. package/dist/utils/loadEnvFile.js +0 -30
  123. package/dist/utils/maskSchema.d.ts +0 -4
  124. package/dist/utils/maskSchema.js +0 -27
  125. package/dist/utils/serializeQueryEngineName.d.ts +0 -4
  126. package/dist/utils/serializeQueryEngineName.js +0 -25
  127. package/dist/utils/tryLoadEnvs.d.ts +0 -25
  128. package/dist/utils/tryLoadEnvs.js +0 -30
@@ -16,15 +16,139 @@ 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_JOIIWB3U_exports = {};
20
- __export(chunk_JOIIWB3U_exports, {
19
+ var chunk_YV4IFLW4_exports = {};
20
+ __export(chunk_YV4IFLW4_exports, {
21
21
  require_globby: () => require_globby,
22
22
  require_is_glob: () => require_is_glob,
23
- require_out: () => require_out4,
24
23
  require_slash: () => require_slash
25
24
  });
26
- module.exports = __toCommonJS(chunk_JOIIWB3U_exports);
25
+ module.exports = __toCommonJS(chunk_YV4IFLW4_exports);
27
26
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
27
+ var require_array_union = (0, import_chunk_4VNS5WPM.__commonJS)({
28
+ "../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js"(exports, module2) {
29
+ "use strict";
30
+ module2.exports = (...arguments_) => {
31
+ return [...new Set([].concat(...arguments_))];
32
+ };
33
+ }
34
+ });
35
+ var require_merge2 = (0, import_chunk_4VNS5WPM.__commonJS)({
36
+ "../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js"(exports, module2) {
37
+ "use strict";
38
+ var Stream = (0, import_chunk_4VNS5WPM.__require)("stream");
39
+ var PassThrough = Stream.PassThrough;
40
+ var slice = Array.prototype.slice;
41
+ module2.exports = merge2;
42
+ function merge2() {
43
+ const streamsQueue = [];
44
+ const args = slice.call(arguments);
45
+ let merging = false;
46
+ let options = args[args.length - 1];
47
+ if (options && !Array.isArray(options) && options.pipe == null) {
48
+ args.pop();
49
+ } else {
50
+ options = {};
51
+ }
52
+ const doEnd = options.end !== false;
53
+ const doPipeError = options.pipeError === true;
54
+ if (options.objectMode == null) {
55
+ options.objectMode = true;
56
+ }
57
+ if (options.highWaterMark == null) {
58
+ options.highWaterMark = 64 * 1024;
59
+ }
60
+ const mergedStream = PassThrough(options);
61
+ function addStream() {
62
+ for (let i = 0, len = arguments.length; i < len; i++) {
63
+ streamsQueue.push(pauseStreams(arguments[i], options));
64
+ }
65
+ mergeStream();
66
+ return this;
67
+ }
68
+ function mergeStream() {
69
+ if (merging) {
70
+ return;
71
+ }
72
+ merging = true;
73
+ let streams = streamsQueue.shift();
74
+ if (!streams) {
75
+ process.nextTick(endStream);
76
+ return;
77
+ }
78
+ if (!Array.isArray(streams)) {
79
+ streams = [streams];
80
+ }
81
+ let pipesCount = streams.length + 1;
82
+ function next() {
83
+ if (--pipesCount > 0) {
84
+ return;
85
+ }
86
+ merging = false;
87
+ mergeStream();
88
+ }
89
+ function pipe(stream) {
90
+ function onend() {
91
+ stream.removeListener("merge2UnpipeEnd", onend);
92
+ stream.removeListener("end", onend);
93
+ if (doPipeError) {
94
+ stream.removeListener("error", onerror);
95
+ }
96
+ next();
97
+ }
98
+ function onerror(err) {
99
+ mergedStream.emit("error", err);
100
+ }
101
+ if (stream._readableState.endEmitted) {
102
+ return next();
103
+ }
104
+ stream.on("merge2UnpipeEnd", onend);
105
+ stream.on("end", onend);
106
+ if (doPipeError) {
107
+ stream.on("error", onerror);
108
+ }
109
+ stream.pipe(mergedStream, { end: false });
110
+ stream.resume();
111
+ }
112
+ for (let i = 0; i < streams.length; i++) {
113
+ pipe(streams[i]);
114
+ }
115
+ next();
116
+ }
117
+ function endStream() {
118
+ merging = false;
119
+ mergedStream.emit("queueDrain");
120
+ if (doEnd) {
121
+ mergedStream.end();
122
+ }
123
+ }
124
+ mergedStream.setMaxListeners(0);
125
+ mergedStream.add = addStream;
126
+ mergedStream.on("unpipe", function(stream) {
127
+ stream.emit("merge2UnpipeEnd");
128
+ });
129
+ if (args.length) {
130
+ addStream.apply(null, args);
131
+ }
132
+ return mergedStream;
133
+ }
134
+ function pauseStreams(streams, options) {
135
+ if (!Array.isArray(streams)) {
136
+ if (!streams._readableState && streams.pipe) {
137
+ streams = streams.pipe(PassThrough(options));
138
+ }
139
+ if (!streams._readableState || !streams.pause || !streams.pipe) {
140
+ throw new Error("Only readable stream can be merged.");
141
+ }
142
+ streams.pause();
143
+ } else {
144
+ for (let i = 0, len = streams.length; i < len; i++) {
145
+ streams[i] = pauseStreams(streams[i], options);
146
+ }
147
+ }
148
+ return streams;
149
+ }
150
+ }
151
+ });
28
152
  var require_array = (0, import_chunk_4VNS5WPM.__commonJS)({
29
153
  "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
30
154
  "use strict";
@@ -3190,123 +3314,6 @@ var require_pattern = (0, import_chunk_4VNS5WPM.__commonJS)({
3190
3314
  exports.isAbsolute = isAbsolute;
3191
3315
  }
3192
3316
  });
3193
- var require_merge2 = (0, import_chunk_4VNS5WPM.__commonJS)({
3194
- "../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js"(exports, module2) {
3195
- "use strict";
3196
- var Stream = (0, import_chunk_4VNS5WPM.__require)("stream");
3197
- var PassThrough = Stream.PassThrough;
3198
- var slice = Array.prototype.slice;
3199
- module2.exports = merge2;
3200
- function merge2() {
3201
- const streamsQueue = [];
3202
- const args = slice.call(arguments);
3203
- let merging = false;
3204
- let options = args[args.length - 1];
3205
- if (options && !Array.isArray(options) && options.pipe == null) {
3206
- args.pop();
3207
- } else {
3208
- options = {};
3209
- }
3210
- const doEnd = options.end !== false;
3211
- const doPipeError = options.pipeError === true;
3212
- if (options.objectMode == null) {
3213
- options.objectMode = true;
3214
- }
3215
- if (options.highWaterMark == null) {
3216
- options.highWaterMark = 64 * 1024;
3217
- }
3218
- const mergedStream = PassThrough(options);
3219
- function addStream() {
3220
- for (let i = 0, len = arguments.length; i < len; i++) {
3221
- streamsQueue.push(pauseStreams(arguments[i], options));
3222
- }
3223
- mergeStream();
3224
- return this;
3225
- }
3226
- function mergeStream() {
3227
- if (merging) {
3228
- return;
3229
- }
3230
- merging = true;
3231
- let streams = streamsQueue.shift();
3232
- if (!streams) {
3233
- process.nextTick(endStream);
3234
- return;
3235
- }
3236
- if (!Array.isArray(streams)) {
3237
- streams = [streams];
3238
- }
3239
- let pipesCount = streams.length + 1;
3240
- function next() {
3241
- if (--pipesCount > 0) {
3242
- return;
3243
- }
3244
- merging = false;
3245
- mergeStream();
3246
- }
3247
- function pipe(stream) {
3248
- function onend() {
3249
- stream.removeListener("merge2UnpipeEnd", onend);
3250
- stream.removeListener("end", onend);
3251
- if (doPipeError) {
3252
- stream.removeListener("error", onerror);
3253
- }
3254
- next();
3255
- }
3256
- function onerror(err) {
3257
- mergedStream.emit("error", err);
3258
- }
3259
- if (stream._readableState.endEmitted) {
3260
- return next();
3261
- }
3262
- stream.on("merge2UnpipeEnd", onend);
3263
- stream.on("end", onend);
3264
- if (doPipeError) {
3265
- stream.on("error", onerror);
3266
- }
3267
- stream.pipe(mergedStream, { end: false });
3268
- stream.resume();
3269
- }
3270
- for (let i = 0; i < streams.length; i++) {
3271
- pipe(streams[i]);
3272
- }
3273
- next();
3274
- }
3275
- function endStream() {
3276
- merging = false;
3277
- mergedStream.emit("queueDrain");
3278
- if (doEnd) {
3279
- mergedStream.end();
3280
- }
3281
- }
3282
- mergedStream.setMaxListeners(0);
3283
- mergedStream.add = addStream;
3284
- mergedStream.on("unpipe", function(stream) {
3285
- stream.emit("merge2UnpipeEnd");
3286
- });
3287
- if (args.length) {
3288
- addStream.apply(null, args);
3289
- }
3290
- return mergedStream;
3291
- }
3292
- function pauseStreams(streams, options) {
3293
- if (!Array.isArray(streams)) {
3294
- if (!streams._readableState && streams.pipe) {
3295
- streams = streams.pipe(PassThrough(options));
3296
- }
3297
- if (!streams._readableState || !streams.pause || !streams.pipe) {
3298
- throw new Error("Only readable stream can be merged.");
3299
- }
3300
- streams.pause();
3301
- } else {
3302
- for (let i = 0, len = streams.length; i < len; i++) {
3303
- streams[i] = pauseStreams(streams[i], options);
3304
- }
3305
- }
3306
- return streams;
3307
- }
3308
- }
3309
- });
3310
3317
  var require_stream = (0, import_chunk_4VNS5WPM.__commonJS)({
3311
3318
  "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(exports) {
3312
3319
  "use strict";
@@ -5351,14 +5358,6 @@ var require_out4 = (0, import_chunk_4VNS5WPM.__commonJS)({
5351
5358
  module2.exports = FastGlob;
5352
5359
  }
5353
5360
  });
5354
- var require_array_union = (0, import_chunk_4VNS5WPM.__commonJS)({
5355
- "../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js"(exports, module2) {
5356
- "use strict";
5357
- module2.exports = (...arguments_) => {
5358
- return [...new Set([].concat(...arguments_))];
5359
- };
5360
- }
5361
- });
5362
5361
  var require_path_type = (0, import_chunk_4VNS5WPM.__commonJS)({
5363
5362
  "../../node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.js"(exports) {
5364
5363
  "use strict";
@@ -26,12 +26,11 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_HFFWZTVM_exports = {};
30
- __export(chunk_HFFWZTVM_exports, {
29
+ var chunk_YXCPS3WU_exports = {};
30
+ __export(chunk_YXCPS3WU_exports, {
31
31
  sendPanic: () => sendPanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_HFFWZTVM_exports);
34
- var import_chunk_KDHESRKE = require("./chunk-KDHESRKE.js");
33
+ module.exports = __toCommonJS(chunk_YXCPS3WU_exports);
35
34
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
36
35
  var import_chunk_5AI4FIZ3 = require("./chunk-5AI4FIZ3.js");
37
36
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -1785,14 +1784,7 @@ async function sendPanic({
1785
1784
  }).otherwise(() => void 0);
1786
1785
  dbVersion = await getDatabaseVersionSafe(getDatabaseVersionParams);
1787
1786
  }
1788
- const migrateRequest = error.request ? JSON.stringify(
1789
- (0, import_chunk_KDHESRKE.mapScalarValues)(error.request, (value) => {
1790
- if (typeof value === "string") {
1791
- return (0, import_chunk_KDHESRKE.maskSchema)(value);
1792
- }
1793
- return value;
1794
- })
1795
- ) : void 0;
1787
+ const migrateRequest = error.request ? JSON.stringify(error.request) : void 0;
1796
1788
  const params = {
1797
1789
  area: error.area,
1798
1790
  kind: "RUST_PANIC",
@@ -1813,9 +1805,7 @@ async function sendPanic({
1813
1805
  return id;
1814
1806
  }
1815
1807
  function getCommand() {
1816
- if (process.argv[2] === "introspect") {
1817
- return "introspect";
1818
- } else if (process.argv[2] === "db" && process.argv[3] === "pull") {
1808
+ if (process.argv[2] === "db" && process.argv[3] === "pull") {
1819
1809
  return "db pull";
1820
1810
  }
1821
1811
  return process.argv.slice(2).join(" ");
@@ -1,18 +1,16 @@
1
- import { SchemaContext } from '..';
1
+ import type { PrismaConfigWithDatasource } from '../utils/validatePrismaConfigWithDatasource';
2
2
  /**
3
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)
4
+ * @param cmd the cli command (eg. db push)
5
5
  * @returns
6
6
  */
7
- export declare const forbiddenCmdWithDataProxyFlagMessage: (command: string) => string;
7
+ export declare const forbiddenCmdWithDataProxyFlagMessage: (cmd: string) => string;
8
8
  /**
9
9
  * Check that the data proxy cannot be used through the given urls and schema contexts
10
- * @param command the cli command (eg. db push)
11
- * @param urls list of urls to check
12
- * @param schemaContexts list of schema contexts to check
10
+ * @param cmd the cli command (eg. db push)
11
+ * @param validatedConfig the validated Prisma Config value
13
12
  */
14
- export declare function checkUnsupportedDataProxy({ cmd, schemaContext, urls, }: {
13
+ export declare function checkUnsupportedDataProxy({ cmd, validatedConfig, }: {
15
14
  cmd: string;
16
- schemaContext?: SchemaContext;
17
- urls?: (string | undefined)[];
15
+ validatedConfig: PrismaConfigWithDatasource;
18
16
  }): void;
@@ -18,118 +18,108 @@ 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_4BHQFID2.checkUnsupportedDataProxy,
22
- forbiddenCmdWithDataProxyFlagMessage: () => import_chunk_4BHQFID2.forbiddenCmdWithDataProxyFlagMessage
21
+ checkUnsupportedDataProxy: () => import_chunk_CI7RDRVK.checkUnsupportedDataProxy,
22
+ forbiddenCmdWithDataProxyFlagMessage: () => import_chunk_CI7RDRVK.forbiddenCmdWithDataProxyFlagMessage
23
23
  });
24
24
  module.exports = __toCommonJS(checkUnsupportedDataProxy_exports);
25
- var import_chunk_4BHQFID2 = require("../chunk-4BHQFID2.js");
25
+ var import_chunk_CI7RDRVK = require("../chunk-CI7RDRVK.js");
26
+ var import_chunk_X77CS5RK = require("../chunk-X77CS5RK.js");
27
+ var import_chunk_PKOQQT7I = require("../chunk-PKOQQT7I.js");
28
+ var import_chunk_5I4ERIIY = require("../chunk-5I4ERIIY.js");
29
+ var import_chunk_GJSFP4V4 = require("../chunk-GJSFP4V4.js");
26
30
  var import_chunk_X3P4J7WW = require("../chunk-X3P4J7WW.js");
27
31
  var import_chunk_LRU47BGE = require("../chunk-LRU47BGE.js");
28
- var import_chunk_OSHZ4P3G = require("../chunk-OSHZ4P3G.js");
29
- var import_chunk_X77CS5RK = require("../chunk-X77CS5RK.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
- var import_chunk_GXW4NTU2 = require("../chunk-GXW4NTU2.js");
34
32
  var import_chunk_5FJ3MENK = require("../chunk-5FJ3MENK.js");
35
33
  var import_chunk_PFYALFCY = require("../chunk-PFYALFCY.js");
36
- var import_chunk_HO5HRHFZ = require("../chunk-HO5HRHFZ.js");
34
+ var import_chunk_SP2ETLT2 = require("../chunk-SP2ETLT2.js");
35
+ var import_chunk_5SAWCTGN = require("../chunk-5SAWCTGN.js");
37
36
  var import_chunk_ANU3HEGF = require("../chunk-ANU3HEGF.js");
38
- var import_chunk_LRBXMV4B = require("../chunk-LRBXMV4B.js");
39
- var import_chunk_7QC5VORA = require("../chunk-7QC5VORA.js");
40
- var import_chunk_AX5N26KG = require("../chunk-AX5N26KG.js");
37
+ var import_chunk_K4IC7NPI = require("../chunk-K4IC7NPI.js");
41
38
  var import_chunk_2SDPW6AX = require("../chunk-2SDPW6AX.js");
42
- var import_chunk_PZMRR772 = require("../chunk-PZMRR772.js");
39
+ var import_chunk_GXW4NTU2 = require("../chunk-GXW4NTU2.js");
40
+ var import_chunk_ZKWDIAVF = require("../chunk-ZKWDIAVF.js");
43
41
  var import_chunk_7B5PXS6N = require("../chunk-7B5PXS6N.js");
44
42
  var import_chunk_UGR6KLZN = require("../chunk-UGR6KLZN.js");
45
43
  var import_chunk_CGFNDGGI = require("../chunk-CGFNDGGI.js");
44
+ var import_chunk_LRBXMV4B = require("../chunk-LRBXMV4B.js");
45
+ var import_chunk_BGMZPA2F = require("../chunk-BGMZPA2F.js");
46
+ var import_chunk_WV4QHCSM = require("../chunk-WV4QHCSM.js");
46
47
  var import_chunk_XXTPN4LB = require("../chunk-XXTPN4LB.js");
47
48
  var import_chunk_2IOZUH3U = require("../chunk-2IOZUH3U.js");
48
49
  var import_chunk_JTKAT4KZ = require("../chunk-JTKAT4KZ.js");
49
50
  var import_chunk_RBDYOTWB = require("../chunk-RBDYOTWB.js");
50
- var import_chunk_ZKWDIAVF = require("../chunk-ZKWDIAVF.js");
51
+ var import_chunk_Q5XW7CMJ = require("../chunk-Q5XW7CMJ.js");
52
+ var import_chunk_5BRXEOYH = require("../chunk-5BRXEOYH.js");
53
+ var import_chunk_J77ZIDXB = require("../chunk-J77ZIDXB.js");
51
54
  var import_chunk_CUD726EK = require("../chunk-CUD726EK.js");
52
55
  var import_chunk_BERN76ZI = require("../chunk-BERN76ZI.js");
53
- var import_chunk_46ABODUM = require("../chunk-46ABODUM.js");
54
- var import_chunk_3FP46GUV = require("../chunk-3FP46GUV.js");
55
- var import_chunk_RFB2U4GQ = require("../chunk-RFB2U4GQ.js");
56
- var import_chunk_UQUWZJVN = require("../chunk-UQUWZJVN.js");
56
+ var import_chunk_GZLJZGHX = require("../chunk-GZLJZGHX.js");
57
57
  var import_chunk_I6WLABB2 = require("../chunk-I6WLABB2.js");
58
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");
69
59
  var import_chunk_DODIJPCS = require("../chunk-DODIJPCS.js");
70
60
  var import_chunk_L6KOIJJ5 = require("../chunk-L6KOIJJ5.js");
71
61
  var import_chunk_NIWBAJZV = require("../chunk-NIWBAJZV.js");
72
62
  var import_chunk_FCYHZHVW = require("../chunk-FCYHZHVW.js");
73
63
  var import_chunk_H4NI2RIK = require("../chunk-H4NI2RIK.js");
74
64
  var import_chunk_ICFLO5JW = require("../chunk-ICFLO5JW.js");
75
- var import_chunk_57ULTP7W = require("../chunk-57ULTP7W.js");
76
- var import_chunk_TQCLUNM2 = require("../chunk-TQCLUNM2.js");
77
- var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
65
+ var import_chunk_HHG4DGHC = require("../chunk-HHG4DGHC.js");
66
+ var import_chunk_CRVLHWC5 = require("../chunk-CRVLHWC5.js");
67
+ var import_chunk_VNIE2AZB = require("../chunk-VNIE2AZB.js");
78
68
  var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
69
+ var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
79
70
  var import_chunk_HPVMQFIY = require("../chunk-HPVMQFIY.js");
80
71
  var import_chunk_E23HYCQJ = require("../chunk-E23HYCQJ.js");
81
- var import_chunk_6JXBYDIF = require("../chunk-6JXBYDIF.js");
82
- var import_chunk_KFYHEWEK = require("../chunk-KFYHEWEK.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_ADEOIJ4A = require("../chunk-ADEOIJ4A.js");
88
- var import_chunk_UPP63U4Q = require("../chunk-UPP63U4Q.js");
89
- var import_chunk_TZJROXB3 = require("../chunk-TZJROXB3.js");
90
- var import_chunk_C47SCASR = require("../chunk-C47SCASR.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");
72
+ var import_chunk_HW5RCZSE = require("../chunk-HW5RCZSE.js");
73
+ var import_chunk_Y4TOGY6I = require("../chunk-Y4TOGY6I.js");
74
+ var import_chunk_IL7PSY44 = require("../chunk-IL7PSY44.js");
75
+ var import_chunk_V6DWK6TN = require("../chunk-V6DWK6TN.js");
76
+ var import_chunk_MNP6VO5F = require("../chunk-MNP6VO5F.js");
77
+ var import_chunk_27NCZWR5 = require("../chunk-27NCZWR5.js");
78
+ var import_chunk_KXBM4OZ4 = require("../chunk-KXBM4OZ4.js");
79
+ var import_chunk_VIZCJ7MZ = require("../chunk-VIZCJ7MZ.js");
80
+ var import_chunk_GL7OANR6 = require("../chunk-GL7OANR6.js");
95
81
  var import_chunk_D4VZUY3O = require("../chunk-D4VZUY3O.js");
96
- var import_chunk_5GGLNSGY = require("../chunk-5GGLNSGY.js");
97
- var import_chunk_XUQH2KVG = require("../chunk-XUQH2KVG.js");
82
+ var import_chunk_PHOJ2NUG = require("../chunk-PHOJ2NUG.js");
83
+ var import_chunk_OSDEWK4V = require("../chunk-OSDEWK4V.js");
84
+ var import_chunk_WSZXPLJQ = require("../chunk-WSZXPLJQ.js");
85
+ var import_chunk_R6QH57HZ = require("../chunk-R6QH57HZ.js");
86
+ var import_chunk_C47SCASR = require("../chunk-C47SCASR.js");
87
+ var import_chunk_HCXWQQTN = require("../chunk-HCXWQQTN.js");
98
88
  var import_chunk_QN6PSQY7 = require("../chunk-QN6PSQY7.js");
89
+ var import_chunk_UMWR2ZFI = require("../chunk-UMWR2ZFI.js");
99
90
  var import_chunk_DTPFRZWV = require("../chunk-DTPFRZWV.js");
100
- var import_chunk_CKEEY4OR = require("../chunk-CKEEY4OR.js");
101
- var import_chunk_XNNQS646 = require("../chunk-XNNQS646.js");
91
+ var import_chunk_4JX4AYC6 = require("../chunk-4JX4AYC6.js");
92
+ var import_chunk_4LKQAQHE = require("../chunk-4LKQAQHE.js");
102
93
  var import_chunk_6JE6QGSJ = require("../chunk-6JE6QGSJ.js");
103
- var import_chunk_BCQZ6JQE = require("../chunk-BCQZ6JQE.js");
104
- var import_chunk_WFNB7VRA = require("../chunk-WFNB7VRA.js");
94
+ var import_chunk_NBWRGVYR = require("../chunk-NBWRGVYR.js");
95
+ var import_chunk_ARC7TW3L = require("../chunk-ARC7TW3L.js");
105
96
  var import_chunk_XYCIH36R = require("../chunk-XYCIH36R.js");
106
- var import_chunk_ERSH2BQA = require("../chunk-ERSH2BQA.js");
107
- var import_chunk_ZJWZK45Z = require("../chunk-ZJWZK45Z.js");
97
+ var import_chunk_OKVM3CW4 = require("../chunk-OKVM3CW4.js");
98
+ var import_chunk_J7ZPY2XA = require("../chunk-J7ZPY2XA.js");
108
99
  var import_chunk_2B26F5N3 = require("../chunk-2B26F5N3.js");
109
- var import_chunk_UHI6VYFX = require("../chunk-UHI6VYFX.js");
100
+ var import_chunk_TRAG7WPX = require("../chunk-TRAG7WPX.js");
110
101
  var import_chunk_JOIHHXR6 = require("../chunk-JOIHHXR6.js");
111
- var import_chunk_FYZCPL2Z = require("../chunk-FYZCPL2Z.js");
102
+ var import_chunk_FASYSGWP = require("../chunk-FASYSGWP.js");
112
103
  var import_chunk_M3GBKLGE = require("../chunk-M3GBKLGE.js");
113
104
  var import_chunk_IDINCQMN = require("../chunk-IDINCQMN.js");
114
105
  var import_chunk_TWSLDIFL = require("../chunk-TWSLDIFL.js");
115
106
  var import_chunk_5DBOS77Y = require("../chunk-5DBOS77Y.js");
116
- var import_chunk_HFFWZTVM = require("../chunk-HFFWZTVM.js");
117
- var import_chunk_KDHESRKE = require("../chunk-KDHESRKE.js");
107
+ var import_chunk_YXCPS3WU = require("../chunk-YXCPS3WU.js");
118
108
  var import_chunk_XKZ6CBLA = require("../chunk-XKZ6CBLA.js");
119
109
  var import_chunk_LMVSIVKQ = require("../chunk-LMVSIVKQ.js");
120
110
  var import_chunk_BPDMLM32 = require("../chunk-BPDMLM32.js");
121
111
  var import_chunk_IOIAK7V7 = require("../chunk-IOIAK7V7.js");
122
- var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
123
112
  var import_chunk_WXRVYSYN = require("../chunk-WXRVYSYN.js");
124
113
  var import_chunk_SBUSVJCV = require("../chunk-SBUSVJCV.js");
125
114
  var import_chunk_LYFOJ5NK = require("../chunk-LYFOJ5NK.js");
126
115
  var import_chunk_LPNBWFQ3 = require("../chunk-LPNBWFQ3.js");
127
- var import_chunk_T2PM5TKT = require("../chunk-T2PM5TKT.js");
128
116
  var import_chunk_5AI4FIZ3 = require("../chunk-5AI4FIZ3.js");
129
117
  var import_chunk_NVNI2SRU = require("../chunk-NVNI2SRU.js");
130
- var import_chunk_BVJP43JS = require("../chunk-BVJP43JS.js");
118
+ var import_chunk_BXIKQUP5 = require("../chunk-BXIKQUP5.js");
131
119
  var import_chunk_KDP6C3CB = require("../chunk-KDP6C3CB.js");
132
- var import_chunk_JOIIWB3U = require("../chunk-JOIIWB3U.js");
120
+ var import_chunk_YV4IFLW4 = require("../chunk-YV4IFLW4.js");
133
121
  var import_chunk_UMM35VP5 = require("../chunk-UMM35VP5.js");
134
122
  var import_chunk_5VQNKCKW = require("../chunk-5VQNKCKW.js");
123
+ var import_chunk_ZJWZK45Z = require("../chunk-ZJWZK45Z.js");
124
+ var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
135
125
  var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -1,8 +1,11 @@
1
- import { PrismaConfigInternal } from '@prisma/config';
1
+ import type { PrismaConfig } from '@prisma/config';
2
2
  import { SchemaContext } from './schemaContext';
3
3
  export type DirectoryConfig = {
4
4
  viewsDirPath: string;
5
5
  typedSqlDirPath: string;
6
6
  migrationsDirPath: string;
7
7
  };
8
- export declare function inferDirectoryConfig(schemaContext?: SchemaContext | null, config?: PrismaConfigInternal, cwd?: string): DirectoryConfig;
8
+ /**
9
+ * TODO: `config` should very likely be mandatory here.
10
+ */
11
+ export declare function inferDirectoryConfig(schemaContext?: SchemaContext | null, config?: Pick<PrismaConfig, 'views' | 'typedSql' | 'migrations'>, cwd?: string): DirectoryConfig;
@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var directoryConfig_exports = {};
20
20
  __export(directoryConfig_exports, {
21
- inferDirectoryConfig: () => import_chunk_BCQZ6JQE.inferDirectoryConfig
21
+ inferDirectoryConfig: () => import_chunk_NBWRGVYR.inferDirectoryConfig
22
22
  });
23
23
  module.exports = __toCommonJS(directoryConfig_exports);
24
- var import_chunk_BCQZ6JQE = require("../chunk-BCQZ6JQE.js");
24
+ var import_chunk_NBWRGVYR = require("../chunk-NBWRGVYR.js");
25
25
  var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -18,12 +18,11 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var getGeneratorSuccessMessage_exports = {};
20
20
  __export(getGeneratorSuccessMessage_exports, {
21
- getGeneratorSuccessMessage: () => import_chunk_WFNB7VRA.getGeneratorSuccessMessage
21
+ getGeneratorSuccessMessage: () => import_chunk_ARC7TW3L.getGeneratorSuccessMessage
22
22
  });
23
23
  module.exports = __toCommonJS(getGeneratorSuccessMessage_exports);
24
- var import_chunk_WFNB7VRA = require("../chunk-WFNB7VRA.js");
24
+ var import_chunk_ARC7TW3L = require("../chunk-ARC7TW3L.js");
25
25
  var import_chunk_XYCIH36R = require("../chunk-XYCIH36R.js");
26
- var import_chunk_ERSH2BQA = require("../chunk-ERSH2BQA.js");
27
26
  var import_chunk_IOIAK7V7 = require("../chunk-IOIAK7V7.js");
28
27
  var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
29
28
  var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -1,10 +1,4 @@
1
- import type { GetSchemaResult, SuccessfulLookupResult } from '@prisma/schema-files-loader';
2
- type PackageJsonLookupResult = SuccessfulLookupResult | {
3
- ok: false;
4
- error: {
5
- kind: 'PackageJsonNotConfigured';
6
- };
7
- };
1
+ import type { GetSchemaResult } from '@prisma/schema-files-loader';
8
2
  export type GetSchemaOptions = {
9
3
  cwd?: string;
10
4
  argumentName?: string;
@@ -28,11 +22,3 @@ export declare function getSchemaWithPath(schemaPathFromArgs?: string, schemaPat
28
22
  */
29
23
  export declare function getSchemaWithPathOptional(schemaPathFromArgs?: string, schemaPathFromConfig?: string, { cwd, argumentName }?: GetSchemaOptions): Promise<GetSchemaResult | null>;
30
24
  export declare function printSchemaLoadedMessage(schemaPath: string): void;
31
- /**
32
- * Trying to access this function results in a deprecation warning.
33
- * Users should be instructed to use the Prisma config file instead.
34
- * See: https://pris.ly/prisma-config.
35
- * @deprecated
36
- */
37
- export declare function getSchemaFromPackageJson(cwd: string): Promise<PackageJsonLookupResult>;
38
- export {};
@@ -18,12 +18,11 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var getSchema_exports = {};
20
20
  __export(getSchema_exports, {
21
- getSchemaFromPackageJson: () => import_chunk_EYVG6XQS.getSchemaFromPackageJson,
22
- getSchemaWithPath: () => import_chunk_EYVG6XQS.getSchemaWithPath,
23
- getSchemaWithPathOptional: () => import_chunk_EYVG6XQS.getSchemaWithPathOptional,
24
- printSchemaLoadedMessage: () => import_chunk_EYVG6XQS.printSchemaLoadedMessage
21
+ getSchemaWithPath: () => import_chunk_OKVM3CW4.getSchemaWithPath,
22
+ getSchemaWithPathOptional: () => import_chunk_OKVM3CW4.getSchemaWithPathOptional,
23
+ printSchemaLoadedMessage: () => import_chunk_OKVM3CW4.printSchemaLoadedMessage
25
24
  });
26
25
  module.exports = __toCommonJS(getSchema_exports);
27
- var import_chunk_EYVG6XQS = require("../chunk-EYVG6XQS.js");
26
+ var import_chunk_OKVM3CW4 = require("../chunk-OKVM3CW4.js");
28
27
  var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
29
28
  var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var hashes_exports = {};
20
20
  __export(hashes_exports, {
21
- getCLIPathHash: () => import_chunk_4JCVHBYR.getCLIPathHash,
22
- getProjectHash: () => import_chunk_4JCVHBYR.getProjectHash
21
+ getCLIPathHash: () => import_chunk_GL7OANR6.getCLIPathHash,
22
+ getProjectHash: () => import_chunk_GL7OANR6.getProjectHash
23
23
  });
24
24
  module.exports = __toCommonJS(hashes_exports);
25
- var import_chunk_4JCVHBYR = require("../chunk-4JCVHBYR.js");
26
- var import_chunk_EYVG6XQS = require("../chunk-EYVG6XQS.js");
25
+ var import_chunk_GL7OANR6 = require("../chunk-GL7OANR6.js");
26
+ var import_chunk_OKVM3CW4 = require("../chunk-OKVM3CW4.js");
27
27
  var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
28
28
  var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");