@prisma/migrate 6.6.0-dev.10 → 6.6.0-dev.101

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 (167) hide show
  1. package/dist/CLI.js +3 -3
  2. package/dist/Migrate.js +9 -6
  3. package/dist/SchemaEngine.js +0 -28
  4. package/dist/SchemaEngineCLI.js +29 -0
  5. package/dist/{utils/getSchemaPathAndPrint.js → SchemaEngineWasm.js} +8 -8
  6. package/dist/bin.js +52 -50
  7. package/dist/chunk-23DZXSTI.js +62 -0
  8. package/dist/{chunk-WWAWV7DQ.js → chunk-2ESYSVXG.js} +3 -27
  9. package/dist/{chunk-LKTTJWFT.js → chunk-2R6DII47.js} +5 -5
  10. package/dist/chunk-33LPBNDX.js +1399 -0
  11. package/dist/{chunk-MKK3GSDF.js → chunk-344G2PKM.js} +9 -9
  12. package/dist/{chunk-V3ZMNXZC.js → chunk-5LKIRKDL.js} +307 -382
  13. package/dist/{chunk-LOGAFLCN.js → chunk-5R44VVVX.js} +29 -29
  14. package/dist/{chunk-DJMFXNR4.js → chunk-74LUB4XX.js} +56 -57
  15. package/dist/{chunk-GG54LOYV.js → chunk-A4FQW4A5.js} +54 -50
  16. package/dist/{chunk-RP2N6UXA.js → chunk-AI6DH66U.js} +6 -6
  17. package/dist/{chunk-A6PMXMMT.js → chunk-AUGZZ6RT.js} +105 -13
  18. package/dist/{chunk-G2XUUMKH.js → chunk-B4SUSDC2.js} +31 -39
  19. package/dist/{chunk-N3KYWSX2.js → chunk-CCFFDJW6.js} +63 -49
  20. package/dist/{chunk-N4XTKFY6.js → chunk-CLSF7VUT.js} +42 -38
  21. package/dist/{chunk-IR55GBON.js → chunk-CU5UT2ED.js} +19 -18
  22. package/dist/{chunk-CQZFVAXC.js → chunk-CYEVXXRH.js} +51 -47
  23. package/dist/{chunk-W2SZNLK4.js → chunk-EJG7GKM7.js} +37 -39
  24. package/dist/{chunk-5PSO7BDO.js → chunk-EJUXYFV3.js} +15 -15
  25. package/dist/{chunk-KS7IEA6Z.js → chunk-HIDSEBVV.js} +55 -54
  26. package/dist/{chunk-ZOEKRXDP.js → chunk-I3LT2PO3.js} +35 -57
  27. package/dist/{chunk-MCWCB2AX.js → chunk-IINN7QUV.js} +170 -643
  28. package/dist/chunk-IK3BVD3Y.js +233 -0
  29. package/dist/{chunk-255BRND3.js → chunk-KRQEFTDT.js} +6 -6
  30. package/dist/{chunk-HCBZB4XC.js → chunk-KW633S3Y.js} +56 -52
  31. package/dist/{chunk-VVKOFN3Y.js → chunk-LLO7YF56.js} +44 -46
  32. package/dist/{chunk-VZ23KD5C.js → chunk-NGQA5JTN.js} +8 -10
  33. package/dist/{chunk-MATFO4ZW.js → chunk-OEWQACEH.js} +38 -39
  34. package/dist/chunk-PQKZ53DW.js +76 -0
  35. package/dist/{chunk-5GVIOOXU.js → chunk-QTXX5BQZ.js} +393 -533
  36. package/dist/{chunk-EGPJABTW.js → chunk-QVMYNWAN.js} +257 -103
  37. package/dist/{chunk-2B4IAB6L.js → chunk-RPOUM5FT.js} +392 -532
  38. package/dist/{chunk-V5TUSOJX.js → chunk-SQKGZVG3.js} +45 -45
  39. package/dist/chunk-URKH6SE2.js +479 -0
  40. package/dist/{chunk-DLLXDCI2.js → chunk-VAJ4VX67.js} +5 -6
  41. package/dist/{chunk-WI2A2TQE.js → chunk-XO3EJLOT.js} +100 -92
  42. package/dist/{chunk-Q3ZLC44N.js → chunk-YBS5GSRF.js} +64 -69
  43. package/dist/{chunk-OCQGHQED.js → chunk-YBX7R3MT.js} +12 -12
  44. package/dist/chunk-YSWLN2IJ.js +890 -0
  45. package/dist/commands/DbCommand.js +3 -3
  46. package/dist/commands/DbDrop.js +4 -5
  47. package/dist/commands/DbExecute.js +10 -7
  48. package/dist/commands/DbPull.js +17 -12
  49. package/dist/commands/DbPush.js +12 -10
  50. package/dist/commands/DbSeed.js +4 -5
  51. package/dist/commands/MigrateCommand.js +3 -3
  52. package/dist/commands/MigrateDeploy.js +14 -12
  53. package/dist/commands/MigrateDev.js +17 -15
  54. package/dist/commands/MigrateDiff.js +13 -10
  55. package/dist/commands/MigrateReset.js +16 -14
  56. package/dist/commands/MigrateResolve.js +12 -10
  57. package/dist/commands/MigrateStatus.js +12 -10
  58. package/dist/index.js +58 -57
  59. package/dist/internals/src/Generator.d.ts +23 -5
  60. package/dist/internals/src/WasmSchemaEngineLoader.d.ts +5 -0
  61. package/dist/internals/src/cli/checkUnsupportedDataProxy.d.ts +12 -17
  62. package/dist/internals/src/cli/checkUnsupportedSchemaEngineWasm.d.ts +22 -0
  63. package/dist/internals/src/cli/directoryConfig.d.ts +7 -0
  64. package/dist/internals/src/cli/getSchema.d.ts +3 -28
  65. package/dist/internals/src/cli/hashes.d.ts +1 -2
  66. package/dist/internals/src/cli/schemaContext.d.ts +59 -0
  67. package/dist/internals/src/client/getClientEngineType.d.ts +1 -1
  68. package/dist/internals/src/convertCredentials.d.ts +1 -1
  69. package/dist/internals/src/engine-commands/getConfig.d.ts +1 -5
  70. package/dist/internals/src/engine-commands/getDmmf.d.ts +3 -6
  71. package/dist/internals/src/engine-commands/lintSchema.d.ts +1 -1
  72. package/dist/internals/src/errorReporting.d.ts +0 -1
  73. package/dist/internals/src/get-generators/getGenerators.d.ts +22 -9
  74. package/dist/internals/src/get-generators/utils/binaryTypeToEngineType.d.ts +1 -1
  75. package/dist/internals/src/get-generators/utils/engineTypeToBinaryType.d.ts +1 -1
  76. package/dist/internals/src/get-generators/utils/fixBinaryTargets.d.ts +1 -1
  77. package/dist/internals/src/get-generators/utils/getBinaryPathsByVersion.d.ts +1 -1
  78. package/dist/internals/src/get-generators/utils/getEngineVersionForGenerator.d.ts +1 -1
  79. package/dist/internals/src/get-generators/utils/printGeneratorConfig.d.ts +1 -1
  80. package/dist/internals/src/index.d.ts +10 -8
  81. package/dist/internals/src/migrateTypes.d.ts +63 -0
  82. package/dist/internals/src/panic.d.ts +1 -4
  83. package/dist/internals/src/resolvePkg.d.ts +7 -0
  84. package/dist/internals/src/types.d.ts +1 -1
  85. package/dist/internals/src/utils/extractPreviewFeatures.d.ts +2 -2
  86. package/dist/internals/src/utils/getEnvPaths.d.ts +1 -1
  87. package/dist/internals/src/utils/parseEnvValue.d.ts +1 -1
  88. package/dist/internals/src/utils/schemaFileInput.d.ts +0 -4
  89. package/dist/internals/src/utils/toSchemasContainer.d.ts +2 -3
  90. package/dist/internals/src/wasm.d.ts +3 -1
  91. package/dist/migrate/src/Migrate.d.ts +18 -7
  92. package/dist/migrate/src/SchemaEngine.d.ts +20 -50
  93. package/dist/migrate/src/SchemaEngineCLI.d.ts +139 -0
  94. package/dist/migrate/src/SchemaEngineWasm.d.ts +134 -0
  95. package/dist/migrate/src/commands/DbExecute.d.ts +1 -1
  96. package/dist/migrate/src/commands/DbPull.d.ts +1 -1
  97. package/dist/migrate/src/commands/DbPush.d.ts +1 -1
  98. package/dist/migrate/src/commands/MigrateDeploy.d.ts +1 -1
  99. package/dist/migrate/src/commands/MigrateDev.d.ts +1 -1
  100. package/dist/migrate/src/commands/MigrateDiff.d.ts +1 -1
  101. package/dist/migrate/src/commands/MigrateReset.d.ts +1 -1
  102. package/dist/migrate/src/commands/MigrateResolve.d.ts +1 -1
  103. package/dist/migrate/src/commands/MigrateStatus.d.ts +1 -1
  104. package/dist/migrate/src/index.d.ts +2 -2
  105. package/dist/migrate/src/types.d.ts +19 -19
  106. package/dist/migrate/src/utils/createMigration.d.ts +21 -0
  107. package/dist/migrate/src/utils/ensureDatabaseExists.d.ts +4 -6
  108. package/dist/migrate/src/utils/introspectSql.d.ts +3 -2
  109. package/dist/migrate/src/utils/listMigrations.d.ts +9 -0
  110. package/dist/migrate/src/utils/printDatasources.d.ts +1 -1
  111. package/dist/migrate/src/utils/seed.d.ts +0 -2
  112. package/dist/migrate/src/views/handleViewsIO.d.ts +2 -2
  113. package/dist/{multipart-parser-54WEFGGN-NLZG56KM.js → multipart-parser-ASKQAOL4-WZ47HU6G.js} +92 -125
  114. package/dist/{multipart-parser-NDLECNMN.js → multipart-parser-QCI3Y5IB.js} +66 -68
  115. package/dist/types.js +1 -1
  116. package/dist/{typescript-WN4QH2CP.js → typescript-2LKASCMC.js} +33 -33
  117. package/dist/{typescript-AILDXN3I.js → typescript-H3AVJ6KX.js} +32 -32
  118. package/dist/utils/byline.js +1 -1
  119. package/dist/utils/captureStdout.js +3 -3
  120. package/dist/utils/countModelsAndTypes.js +1 -1
  121. package/dist/utils/createMigration.js +27 -0
  122. package/dist/utils/customColors.js +1 -1
  123. package/dist/utils/ensureDatabaseExists.js +7 -7
  124. package/dist/utils/errors.js +1 -1
  125. package/dist/utils/flagErrors.js +1 -1
  126. package/dist/utils/getDatabaseVersionSafe.js +10 -5
  127. package/dist/utils/handleEvaluateDataloss.js +1 -1
  128. package/dist/utils/introspectSql.js +10 -5
  129. package/dist/utils/isSchemaEmpty.js +1 -1
  130. package/dist/utils/listMigrations.js +25 -0
  131. package/dist/utils/now.js +1 -1
  132. package/dist/utils/printDatasource.js +1 -1
  133. package/dist/utils/printDatasources.js +5 -5
  134. package/dist/utils/printFiles.js +5 -5
  135. package/dist/utils/printIntrospectedSchema.js +1 -1
  136. package/dist/utils/printMigrationId.js +1 -1
  137. package/dist/utils/promptForMigrationName.js +3 -3
  138. package/dist/utils/removeSchemaFiles.js +1 -1
  139. package/dist/utils/replaceOrAddDatasource.js +1 -1
  140. package/dist/utils/replaceOrAddDatasource.test.js +1 -1
  141. package/dist/utils/saveSchemaFiles.js +1 -1
  142. package/dist/utils/seed.js +4 -7
  143. package/dist/utils/setupCockroach.js +3 -3
  144. package/dist/utils/setupMSSQL.js +1478 -707
  145. package/dist/utils/setupMongo.js +553 -552
  146. package/dist/utils/setupMysql.js +508 -563
  147. package/dist/utils/setupPostgres.js +3 -3
  148. package/dist/utils/spinner.js +4 -3
  149. package/dist/utils/test-handlePanic.js +1 -30
  150. package/dist/utils/unixSocket.js +1 -1
  151. package/dist/views/handleViewsIO.js +3 -3
  152. package/package.json +12 -11
  153. package/dist/chunk-GKDFIHM2.js +0 -45
  154. package/dist/chunk-J46BJQHT.js +0 -268
  155. package/dist/chunk-KOF4LGTS.js +0 -1817
  156. package/dist/chunk-YYPMC5FN.js +0 -1407
  157. package/dist/internals/src/get-generators/generatorResolvers/generatorResolvers.d.ts +0 -15
  158. package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.d.ts +0 -6
  159. package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.d.ts +0 -9
  160. package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.d.ts +0 -8
  161. package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.d.ts +0 -6
  162. package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.d.ts +0 -1
  163. package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.d.ts +0 -20
  164. package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.d.ts +0 -7
  165. package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.d.ts +0 -20
  166. package/dist/internals/src/get-generators/utils/check-feature-flags/checkFeatureFlags.d.ts +0 -8
  167. package/dist/migrate/src/utils/getSchemaPathAndPrint.d.ts +0 -10
@@ -16,11 +16,13 @@ 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_A6PMXMMT_exports = {};
20
- __export(chunk_A6PMXMMT_exports, {
19
+ var chunk_AUGZZ6RT_exports = {};
20
+ __export(chunk_AUGZZ6RT_exports, {
21
21
  require_clean: () => require_clean,
22
22
  require_constants: () => require_constants,
23
23
  require_debug: () => require_debug,
24
+ require_function_bind: () => require_function_bind,
25
+ require_hasown: () => require_hasown,
24
26
  require_identifiers: () => require_identifiers,
25
27
  require_parse: () => require_parse,
26
28
  require_parse_options: () => require_parse_options,
@@ -28,9 +30,9 @@ __export(chunk_A6PMXMMT_exports, {
28
30
  require_semver: () => require_semver,
29
31
  require_valid: () => require_valid
30
32
  });
31
- module.exports = __toCommonJS(chunk_A6PMXMMT_exports);
32
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
33
- var require_debug = (0, import_chunk_WWAWV7DQ.__commonJS)({
33
+ module.exports = __toCommonJS(chunk_AUGZZ6RT_exports);
34
+ var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
35
+ var require_debug = (0, import_chunk_2ESYSVXG.__commonJS)({
34
36
  "../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/internal/debug.js"(exports, module2) {
35
37
  "use strict";
36
38
  var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
@@ -38,7 +40,7 @@ var require_debug = (0, import_chunk_WWAWV7DQ.__commonJS)({
38
40
  module2.exports = debug;
39
41
  }
40
42
  });
41
- var require_constants = (0, import_chunk_WWAWV7DQ.__commonJS)({
43
+ var require_constants = (0, import_chunk_2ESYSVXG.__commonJS)({
42
44
  "../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/internal/constants.js"(exports, module2) {
43
45
  "use strict";
44
46
  var SEMVER_SPEC_VERSION = "2.0.0";
@@ -68,7 +70,7 @@ var require_constants = (0, import_chunk_WWAWV7DQ.__commonJS)({
68
70
  };
69
71
  }
70
72
  });
71
- var require_re = (0, import_chunk_WWAWV7DQ.__commonJS)({
73
+ var require_re = (0, import_chunk_2ESYSVXG.__commonJS)({
72
74
  "../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/internal/re.js"(exports, module2) {
73
75
  "use strict";
74
76
  var {
@@ -152,7 +154,7 @@ var require_re = (0, import_chunk_WWAWV7DQ.__commonJS)({
152
154
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
153
155
  }
154
156
  });
155
- var require_parse_options = (0, import_chunk_WWAWV7DQ.__commonJS)({
157
+ var require_parse_options = (0, import_chunk_2ESYSVXG.__commonJS)({
156
158
  "../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/internal/parse-options.js"(exports, module2) {
157
159
  "use strict";
158
160
  var looseOption = Object.freeze({ loose: true });
@@ -169,7 +171,7 @@ var require_parse_options = (0, import_chunk_WWAWV7DQ.__commonJS)({
169
171
  module2.exports = parseOptions;
170
172
  }
171
173
  });
172
- var require_identifiers = (0, import_chunk_WWAWV7DQ.__commonJS)({
174
+ var require_identifiers = (0, import_chunk_2ESYSVXG.__commonJS)({
173
175
  "../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/internal/identifiers.js"(exports, module2) {
174
176
  "use strict";
175
177
  var numeric = /^[0-9]+$/;
@@ -189,7 +191,7 @@ var require_identifiers = (0, import_chunk_WWAWV7DQ.__commonJS)({
189
191
  };
190
192
  }
191
193
  });
192
- var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
194
+ var require_semver = (0, import_chunk_2ESYSVXG.__commonJS)({
193
195
  "../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/classes/semver.js"(exports, module2) {
194
196
  "use strict";
195
197
  var debug = require_debug();
@@ -448,7 +450,7 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
448
450
  module2.exports = SemVer;
449
451
  }
450
452
  });
451
- var require_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
453
+ var require_parse = (0, import_chunk_2ESYSVXG.__commonJS)({
452
454
  "../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/functions/parse.js"(exports, module2) {
453
455
  "use strict";
454
456
  var SemVer = require_semver();
@@ -468,7 +470,7 @@ var require_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
468
470
  module2.exports = parse;
469
471
  }
470
472
  });
471
- var require_valid = (0, import_chunk_WWAWV7DQ.__commonJS)({
473
+ var require_valid = (0, import_chunk_2ESYSVXG.__commonJS)({
472
474
  "../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/functions/valid.js"(exports, module2) {
473
475
  "use strict";
474
476
  var parse = require_parse();
@@ -479,7 +481,7 @@ var require_valid = (0, import_chunk_WWAWV7DQ.__commonJS)({
479
481
  module2.exports = valid;
480
482
  }
481
483
  });
482
- var require_clean = (0, import_chunk_WWAWV7DQ.__commonJS)({
484
+ var require_clean = (0, import_chunk_2ESYSVXG.__commonJS)({
483
485
  "../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/functions/clean.js"(exports, module2) {
484
486
  "use strict";
485
487
  var parse = require_parse();
@@ -490,3 +492,93 @@ var require_clean = (0, import_chunk_WWAWV7DQ.__commonJS)({
490
492
  module2.exports = clean;
491
493
  }
492
494
  });
495
+ var require_implementation = (0, import_chunk_2ESYSVXG.__commonJS)({
496
+ "../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module2) {
497
+ "use strict";
498
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
499
+ var toStr = Object.prototype.toString;
500
+ var max = Math.max;
501
+ var funcType = "[object Function]";
502
+ var concatty = function concatty2(a, b) {
503
+ var arr = [];
504
+ for (var i = 0; i < a.length; i += 1) {
505
+ arr[i] = a[i];
506
+ }
507
+ for (var j = 0; j < b.length; j += 1) {
508
+ arr[j + a.length] = b[j];
509
+ }
510
+ return arr;
511
+ };
512
+ var slicy = function slicy2(arrLike, offset) {
513
+ var arr = [];
514
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
515
+ arr[j] = arrLike[i];
516
+ }
517
+ return arr;
518
+ };
519
+ var joiny = function(arr, joiner) {
520
+ var str = "";
521
+ for (var i = 0; i < arr.length; i += 1) {
522
+ str += arr[i];
523
+ if (i + 1 < arr.length) {
524
+ str += joiner;
525
+ }
526
+ }
527
+ return str;
528
+ };
529
+ module2.exports = function bind(that) {
530
+ var target = this;
531
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
532
+ throw new TypeError(ERROR_MESSAGE + target);
533
+ }
534
+ var args = slicy(arguments, 1);
535
+ var bound;
536
+ var binder = function() {
537
+ if (this instanceof bound) {
538
+ var result = target.apply(
539
+ this,
540
+ concatty(args, arguments)
541
+ );
542
+ if (Object(result) === result) {
543
+ return result;
544
+ }
545
+ return this;
546
+ }
547
+ return target.apply(
548
+ that,
549
+ concatty(args, arguments)
550
+ );
551
+ };
552
+ var boundLength = max(0, target.length - args.length);
553
+ var boundArgs = [];
554
+ for (var i = 0; i < boundLength; i++) {
555
+ boundArgs[i] = "$" + i;
556
+ }
557
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
558
+ if (target.prototype) {
559
+ var Empty = function Empty2() {
560
+ };
561
+ Empty.prototype = target.prototype;
562
+ bound.prototype = new Empty();
563
+ Empty.prototype = null;
564
+ }
565
+ return bound;
566
+ };
567
+ }
568
+ });
569
+ var require_function_bind = (0, import_chunk_2ESYSVXG.__commonJS)({
570
+ "../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module2) {
571
+ "use strict";
572
+ var implementation = require_implementation();
573
+ module2.exports = Function.prototype.bind || implementation;
574
+ }
575
+ });
576
+ var require_hasown = (0, import_chunk_2ESYSVXG.__commonJS)({
577
+ "../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module2) {
578
+ "use strict";
579
+ var call = Function.prototype.call;
580
+ var $hasOwn = Object.prototype.hasOwnProperty;
581
+ var bind = require_function_bind();
582
+ module2.exports = bind.call(call, $hasOwn);
583
+ }
584
+ });
@@ -16,16 +16,16 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_G2XUUMKH_exports = {};
20
- __export(chunk_G2XUUMKH_exports, {
19
+ var chunk_B4SUSDC2_exports = {};
20
+ __export(chunk_B4SUSDC2_exports, {
21
21
  DbSeed: () => DbSeed
22
22
  });
23
- module.exports = __toCommonJS(chunk_G2XUUMKH_exports);
24
- var import_chunk_V3ZMNXZC = require("./chunk-V3ZMNXZC.js");
23
+ module.exports = __toCommonJS(chunk_B4SUSDC2_exports);
24
+ var import_chunk_5LKIRKDL = require("./chunk-5LKIRKDL.js");
25
25
  var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
26
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
26
+ var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
27
27
  var import_internals = require("@prisma/internals");
28
- var require_arg = (0, import_chunk_WWAWV7DQ.__commonJS)({
28
+ var require_arg = (0, import_chunk_2ESYSVXG.__commonJS)({
29
29
  "../../node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.js"(exports, module2) {
30
30
  "use strict";
31
31
  var flagSymbol = Symbol("arg flag");
@@ -168,11 +168,28 @@ var require_arg = (0, import_chunk_WWAWV7DQ.__commonJS)({
168
168
  module2.exports = arg2;
169
169
  }
170
170
  });
171
- var import_arg = (0, import_chunk_WWAWV7DQ.__toESM)(require_arg());
172
- var _DbSeed = class _DbSeed2 {
171
+ var import_arg = (0, import_chunk_2ESYSVXG.__toESM)(require_arg());
172
+ var DbSeed = class _DbSeed {
173
173
  static new() {
174
- return new _DbSeed2();
174
+ return new _DbSeed();
175
175
  }
176
+ static help = (0, import_internals.format)(`
177
+ ${process.platform === "win32" ? "" : "\u{1F64C} "}Seed your database
178
+
179
+ ${(0, import_chunk_SKRR5WT4.bold)("Usage")}
180
+
181
+ ${(0, import_chunk_SKRR5WT4.dim)("$")} prisma db seed [options]
182
+
183
+ ${(0, import_chunk_SKRR5WT4.bold)("Options")}
184
+
185
+ -h, --help Display this help message
186
+ --config Custom path to your Prisma config file
187
+
188
+ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
189
+
190
+ Passing extra arguments to the seed command
191
+ ${(0, import_chunk_SKRR5WT4.dim)("$")} prisma db seed -- --arg1 value1 --arg2 value2
192
+ `);
176
193
  async parse(argv, config) {
177
194
  const args = (0, import_internals.arg)(
178
195
  argv,
@@ -197,17 +214,10 @@ ${(0, import_chunk_SKRR5WT4.dim)("$")} prisma db seed -- --arg1 value1 --arg2 va
197
214
  return this.help();
198
215
  }
199
216
  await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
200
- const seedCommandFromPkgJson = await (0, import_chunk_V3ZMNXZC.getSeedCommandFromPackageJson)(process.cwd());
201
- if (!seedCommandFromPkgJson) {
202
- const schemaResult = await (0, import_internals.getSchemaWithPath)(args["--schema"], config.schema);
203
- const message = await (0, import_chunk_V3ZMNXZC.verifySeedConfigAndReturnMessage)(schemaResult?.schemaPath ?? null);
204
- if (message) {
205
- throw new Error(message);
206
- }
207
- return ``;
208
- }
217
+ const seedCommandFromPkgJson = await (0, import_chunk_5LKIRKDL.getSeedCommandFromPackageJson)(process.cwd());
218
+ if (!seedCommandFromPkgJson) return ``;
209
219
  const extraArgs = args._.join(" ");
210
- const successfulSeeding = await (0, import_chunk_V3ZMNXZC.executeSeedCommand)({ commandFromConfig: seedCommandFromPkgJson, extraArgs });
220
+ const successfulSeeding = await (0, import_chunk_5LKIRKDL.executeSeedCommand)({ commandFromConfig: seedCommandFromPkgJson, extraArgs });
211
221
  if (successfulSeeding) {
212
222
  return `
213
223
  ${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been executed.`;
@@ -219,26 +229,8 @@ ${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been ex
219
229
  if (error) {
220
230
  return new import_internals.HelpError(`
221
231
  ${(0, import_chunk_SKRR5WT4.bold)((0, import_chunk_SKRR5WT4.red)(`!`))} ${error}
222
- ${_DbSeed2.help}`);
232
+ ${_DbSeed.help}`);
223
233
  }
224
- return _DbSeed2.help;
234
+ return _DbSeed.help;
225
235
  }
226
236
  };
227
- (0, import_chunk_WWAWV7DQ.__publicField)(_DbSeed, "help", (0, import_internals.format)(`
228
- ${process.platform === "win32" ? "" : "\u{1F64C} "}Seed your database
229
-
230
- ${(0, import_chunk_SKRR5WT4.bold)("Usage")}
231
-
232
- ${(0, import_chunk_SKRR5WT4.dim)("$")} prisma db seed [options]
233
-
234
- ${(0, import_chunk_SKRR5WT4.bold)("Options")}
235
-
236
- -h, --help Display this help message
237
- --config Custom path to your Prisma config file
238
-
239
- ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
240
-
241
- Passing extra arguments to the seed command
242
- ${(0, import_chunk_SKRR5WT4.dim)("$")} prisma db seed -- --arg1 value1 --arg2 value2
243
- `));
244
- var DbSeed = _DbSeed;
@@ -26,14 +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_N3KYWSX2_exports = {};
30
- __export(chunk_N3KYWSX2_exports, {
29
+ var chunk_CCFFDJW6_exports = {};
30
+ __export(chunk_CCFFDJW6_exports, {
31
31
  DbExecute: () => DbExecute
32
32
  });
33
- module.exports = __toCommonJS(chunk_N3KYWSX2_exports);
34
- var import_chunk_KOF4LGTS = require("./chunk-KOF4LGTS.js");
33
+ module.exports = __toCommonJS(chunk_CCFFDJW6_exports);
34
+ var import_chunk_YSWLN2IJ = require("./chunk-YSWLN2IJ.js");
35
35
  var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
36
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
37
36
  var import_internals = require("@prisma/internals");
38
37
  var import_fs = __toESM(require("fs"));
39
38
  var import_path = __toESM(require("path"));
@@ -82,10 +81,48 @@ ${(0, import_chunk_SKRR5WT4.bold)("Flags")}
82
81
 
83
82
  --stdin Use the terminal standard input as the script to be executed`
84
83
  );
85
- var _DbExecute = class _DbExecute2 {
84
+ var DbExecute = class _DbExecute {
86
85
  static new() {
87
- return new _DbExecute2();
86
+ return new _DbExecute();
88
87
  }
88
+ // TODO: This command needs to get proper support for `prisma.config.ts` eventually. Not just taking the schema path
89
+ // from prisma.config.ts but likely to support driver adapters, too?
90
+ // See https://linear.app/prisma-company/issue/ORM-639/prisma-db-execute-support-prismaconfigts-and-driver-adapters
91
+ static help = (0, import_internals.format)(`
92
+ ${process.platform === "win32" ? "" : "\u{1F4DD} "}Execute native commands to your database
93
+
94
+ This command takes as input a datasource, using ${(0, import_chunk_SKRR5WT4.green)(`--url`)} or ${(0, import_chunk_SKRR5WT4.green)(`--schema`)} and a script, using ${(0, import_chunk_SKRR5WT4.green)(
95
+ `--stdin`
96
+ )} or ${(0, import_chunk_SKRR5WT4.green)(`--file`)}.
97
+ The input parameters are mutually exclusive, only 1 of each (datasource & script) must be provided.
98
+
99
+ The output of the command is connector-specific, and is not meant for returning data, but only to report success or failure.
100
+
101
+ On SQL databases, this command takes as input a SQL script.
102
+ The whole script will be sent as a single command to the database.
103
+
104
+ ${(0, import_chunk_SKRR5WT4.italic)(`This command is currently not supported on MongoDB.`)}
105
+
106
+ ${helpOptions}
107
+ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
108
+
109
+ Execute the content of a SQL script file to the datasource URL taken from the schema
110
+ ${(0, import_chunk_SKRR5WT4.dim)("$")} prisma db execute
111
+ --file ./script.sql \\
112
+ --schema schema.prisma
113
+
114
+ Execute the SQL script from stdin to the datasource URL specified via the \`DATABASE_URL\` environment variable
115
+ ${(0, import_chunk_SKRR5WT4.dim)("$")} echo 'TRUNCATE TABLE dev;' | \\
116
+ prisma db execute \\
117
+ --stdin \\
118
+ --url="$DATABASE_URL"
119
+
120
+ Like previous example, but exposing the datasource url credentials to your terminal history
121
+ ${(0, import_chunk_SKRR5WT4.dim)("$")} echo 'TRUNCATE TABLE dev;' | \\
122
+ prisma db execute \\
123
+ --stdin \\
124
+ --url="mysql://root:root@localhost/mydb"
125
+ `);
89
126
  async parse(argv, config) {
90
127
  const args = (0, import_internals.arg)(
91
128
  argv,
@@ -104,11 +141,17 @@ var _DbExecute = class _DbExecute2 {
104
141
  if ((0, import_internals.isError)(args)) {
105
142
  return this.help(args.message);
106
143
  }
107
- await (0, import_internals.checkUnsupportedDataProxy)("db execute", args, config.schema, !args["--url"]);
108
144
  if (args["--help"]) {
109
145
  return this.help();
110
146
  }
111
147
  await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: false, config });
148
+ const cmd = "db execute";
149
+ (0, import_internals.checkUnsupportedSchemaEngineWasm)({
150
+ cmd,
151
+ config,
152
+ args,
153
+ flags: ["--url"]
154
+ });
112
155
  if (args["--stdin"] && args["--file"]) {
113
156
  throw new Error(
114
157
  `--stdin and --file cannot be used at the same time. Only 1 must be provided.
@@ -149,19 +192,26 @@ See \`${(0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExec
149
192
  }
150
193
  let datasourceType;
151
194
  if (args["--url"]) {
195
+ (0, import_internals.checkUnsupportedDataProxy)({ cmd, urls: [args["--url"]] });
152
196
  datasourceType = {
153
197
  tag: "url",
154
198
  url: args["--url"]
155
199
  };
156
200
  } else {
157
- const schemaWithPath = await (0, import_internals.getSchemaWithPath)(args["--schema"], config.schema);
158
- const engineConfig = await (0, import_internals.getConfig)({ datamodel: schemaWithPath.schemas });
201
+ const schemaContext = await (0, import_internals.loadSchemaContext)({
202
+ schemaPathFromArg: args["--schema"],
203
+ schemaPathFromConfig: config.schema,
204
+ printLoadMessage: false
205
+ });
206
+ (0, import_internals.checkUnsupportedDataProxy)({ cmd, schemaContext });
159
207
  datasourceType = {
160
208
  tag: "schema",
161
- ...(0, import_internals.toSchemasWithConfigDir)(schemaWithPath, engineConfig)
209
+ ...(0, import_internals.toSchemasContainer)(schemaContext.schemaFiles),
210
+ configDir: schemaContext.primaryDatasourceDirectory
162
211
  };
163
212
  }
164
- const migrate = new import_chunk_KOF4LGTS.Migrate();
213
+ const adapter = await config.migrate?.adapter(process.env);
214
+ const migrate = await import_chunk_YSWLN2IJ.Migrate.setup({ adapter });
165
215
  try {
166
216
  await migrate.engine.dbExecute({
167
217
  script,
@@ -179,42 +229,6 @@ ${error}
179
229
 
180
230
  ${helpOptions}`);
181
231
  }
182
- return _DbExecute2.help;
232
+ return _DbExecute.help;
183
233
  }
184
234
  };
185
- (0, import_chunk_WWAWV7DQ.__publicField)(_DbExecute, "help", (0, import_internals.format)(`
186
- ${process.platform === "win32" ? "" : "\u{1F4DD} "}Execute native commands to your database
187
-
188
- This command takes as input a datasource, using ${(0, import_chunk_SKRR5WT4.green)(`--url`)} or ${(0, import_chunk_SKRR5WT4.green)(`--schema`)} and a script, using ${(0, import_chunk_SKRR5WT4.green)(
189
- `--stdin`
190
- )} or ${(0, import_chunk_SKRR5WT4.green)(`--file`)}.
191
- The input parameters are mutually exclusive, only 1 of each (datasource & script) must be provided.
192
-
193
- The output of the command is connector-specific, and is not meant for returning data, but only to report success or failure.
194
-
195
- On SQL databases, this command takes as input a SQL script.
196
- The whole script will be sent as a single command to the database.
197
-
198
- ${(0, import_chunk_SKRR5WT4.italic)(`This command is currently not supported on MongoDB.`)}
199
-
200
- ${helpOptions}
201
- ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
202
-
203
- Execute the content of a SQL script file to the datasource URL taken from the schema
204
- ${(0, import_chunk_SKRR5WT4.dim)("$")} prisma db execute
205
- --file ./script.sql \\
206
- --schema schema.prisma
207
-
208
- Execute the SQL script from stdin to the datasource URL specified via the \`DATABASE_URL\` environment variable
209
- ${(0, import_chunk_SKRR5WT4.dim)("$")} echo 'TRUNCATE TABLE dev;' | \\
210
- prisma db execute \\
211
- --stdin \\
212
- --url="$DATABASE_URL"
213
-
214
- Like previous example, but exposing the datasource url credentials to your terminal history
215
- ${(0, import_chunk_SKRR5WT4.dim)("$")} echo 'TRUNCATE TABLE dev;' | \\
216
- prisma db execute \\
217
- --stdin \\
218
- --url="mysql://root:root@localhost/mydb"
219
- `));
220
- var DbExecute = _DbExecute;
@@ -26,24 +26,43 @@ 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_N4XTKFY6_exports = {};
30
- __export(chunk_N4XTKFY6_exports, {
29
+ var chunk_CLSF7VUT_exports = {};
30
+ __export(chunk_CLSF7VUT_exports, {
31
31
  MigrateStatus: () => MigrateStatus
32
32
  });
33
- module.exports = __toCommonJS(chunk_N4XTKFY6_exports);
34
- var import_chunk_KOF4LGTS = require("./chunk-KOF4LGTS.js");
35
- var import_chunk_GKDFIHM2 = require("./chunk-GKDFIHM2.js");
33
+ module.exports = __toCommonJS(chunk_CLSF7VUT_exports);
36
34
  var import_chunk_QOPTDDIH = require("./chunk-QOPTDDIH.js");
37
- var import_chunk_DJMFXNR4 = require("./chunk-DJMFXNR4.js");
35
+ var import_chunk_74LUB4XX = require("./chunk-74LUB4XX.js");
36
+ var import_chunk_YSWLN2IJ = require("./chunk-YSWLN2IJ.js");
38
37
  var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
39
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
40
38
  var import_debug = __toESM(require("@prisma/debug"));
41
39
  var import_internals = require("@prisma/internals");
42
40
  var debug = (0, import_debug.default)("prisma:migrate:status");
43
- var _MigrateStatus = class _MigrateStatus2 {
41
+ var MigrateStatus = class _MigrateStatus {
44
42
  static new() {
45
- return new _MigrateStatus2();
43
+ return new _MigrateStatus();
46
44
  }
45
+ static help = (0, import_internals.format)(`
46
+ Check the status of your database migrations
47
+
48
+ ${(0, import_chunk_SKRR5WT4.bold)("Usage")}
49
+
50
+ ${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate status [options]
51
+
52
+ ${(0, import_chunk_SKRR5WT4.bold)("Options")}
53
+
54
+ -h, --help Display this help message
55
+ --config Custom path to your Prisma config file
56
+ --schema Custom path to your Prisma schema
57
+
58
+ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
59
+
60
+ Check the status of your database migrations
61
+ ${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate status
62
+
63
+ Specify a schema
64
+ ${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate status --schema=./schema.prisma
65
+ `);
47
66
  async parse(argv, config) {
48
67
  const args = (0, import_internals.arg)(
49
68
  argv,
@@ -59,15 +78,22 @@ var _MigrateStatus = class _MigrateStatus2 {
59
78
  if ((0, import_internals.isError)(args)) {
60
79
  return this.help(args.message);
61
80
  }
62
- await (0, import_internals.checkUnsupportedDataProxy)("migrate status", args, config.schema, true);
63
81
  if (args["--help"]) {
64
82
  return this.help();
65
83
  }
66
84
  await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true, config });
67
- const { schemaPath } = await (0, import_chunk_GKDFIHM2.getSchemaPathAndPrint)(args["--schema"], config.schema);
68
- (0, import_chunk_QOPTDDIH.printDatasource)({ datasourceInfo: await (0, import_chunk_DJMFXNR4.getDatasourceInfo)({ schemaPath }) });
69
- const migrate = new import_chunk_KOF4LGTS.Migrate(schemaPath);
70
- await (0, import_chunk_DJMFXNR4.ensureCanConnectToDatabase)(schemaPath);
85
+ const schemaContext = await (0, import_internals.loadSchemaContext)({
86
+ schemaPathFromArg: args["--schema"],
87
+ schemaPathFromConfig: config.schema
88
+ });
89
+ const { migrationsDirPath } = (0, import_internals.inferDirectoryConfig)(schemaContext);
90
+ (0, import_internals.checkUnsupportedDataProxy)({ cmd: "migrate status", schemaContext });
91
+ (0, import_chunk_QOPTDDIH.printDatasource)({ datasourceInfo: (0, import_chunk_74LUB4XX.parseDatasourceInfo)(schemaContext.primaryDatasource) });
92
+ const adapter = await config.migrate?.adapter(process.env);
93
+ const migrate = await import_chunk_YSWLN2IJ.Migrate.setup({ adapter, migrationsDirPath, schemaContext });
94
+ if (!adapter) {
95
+ await (0, import_chunk_74LUB4XX.ensureCanConnectToDatabase)(schemaContext.primaryDatasource);
96
+ }
71
97
  let diagnoseResult;
72
98
  let listMigrationDirectoriesResult;
73
99
  try {
@@ -167,30 +193,8 @@ ${(0, import_internals.link)("https://pris.ly/d/migrate-resolve")}`);
167
193
  if (error) {
168
194
  return new import_internals.HelpError(`
169
195
  ${(0, import_chunk_SKRR5WT4.bold)((0, import_chunk_SKRR5WT4.red)(`!`))} ${error}
170
- ${_MigrateStatus2.help}`);
196
+ ${_MigrateStatus.help}`);
171
197
  }
172
- return _MigrateStatus2.help;
198
+ return _MigrateStatus.help;
173
199
  }
174
200
  };
175
- (0, import_chunk_WWAWV7DQ.__publicField)(_MigrateStatus, "help", (0, import_internals.format)(`
176
- Check the status of your database migrations
177
-
178
- ${(0, import_chunk_SKRR5WT4.bold)("Usage")}
179
-
180
- ${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate status [options]
181
-
182
- ${(0, import_chunk_SKRR5WT4.bold)("Options")}
183
-
184
- -h, --help Display this help message
185
- --config Custom path to your Prisma config file
186
- --schema Custom path to your Prisma schema
187
-
188
- ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
189
-
190
- Check the status of your database migrations
191
- ${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate status
192
-
193
- Specify a schema
194
- ${(0, import_chunk_SKRR5WT4.dim)("$")} prisma migrate status --schema=./schema.prisma
195
- `));
196
- var MigrateStatus = _MigrateStatus;
@@ -16,32 +16,33 @@ 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_IR55GBON_exports = {};
20
- __export(chunk_IR55GBON_exports, {
19
+ var chunk_CU5UT2ED_exports = {};
20
+ __export(chunk_CU5UT2ED_exports, {
21
21
  introspectSql: () => introspectSql
22
22
  });
23
- module.exports = __toCommonJS(chunk_IR55GBON_exports);
24
- var import_chunk_ZOEKRXDP = require("./chunk-ZOEKRXDP.js");
23
+ module.exports = __toCommonJS(chunk_CU5UT2ED_exports);
24
+ var import_chunk_YSWLN2IJ = require("./chunk-YSWLN2IJ.js");
25
25
  var import_internals = require("@prisma/internals");
26
26
  var supportedProviders = ["postgresql", "cockroachdb", "mysql", "sqlite"];
27
- async function introspectSql(schemaPath, queries) {
28
- const schema = await (0, import_internals.getSchemaWithPath)(schemaPath);
29
- const config = await (0, import_internals.getConfig)({ datamodel: schema.schemas });
30
- if (!supportedProviders.includes(config.datasources?.[0]?.activeProvider)) {
31
- throw new Error(`Typed SQL is supported only for ${supportedProviders.join(", ")} providers`);
32
- }
33
- if (!isTypedSqlEnabled(config)) {
34
- throw new Error(`\`typedSql\` preview feature needs to be enabled in ${schema.schemaPath}`);
27
+ async function introspectSql(schemaContext, queries) {
28
+ if (!isTypedSqlEnabled(schemaContext.generators)) {
29
+ throw new Error(`\`typedSql\` preview feature needs to be enabled in ${schemaContext.loadedFromPathForLogMessages}`);
35
30
  }
36
- const firstDatasource = config.datasources[0];
31
+ const firstDatasource = schemaContext.primaryDatasource;
37
32
  if (!firstDatasource) {
38
- throw new Error(`Could not find datasource in schema ${schema.schemaPath}`);
33
+ throw new Error(`Could not find datasource in schema ${schemaContext.loadedFromPathForLogMessages}`);
34
+ }
35
+ if (!supportedProviders.includes(firstDatasource.activeProvider)) {
36
+ throw new Error(`Typed SQL is supported only for ${supportedProviders.join(", ")} providers`);
39
37
  }
40
38
  const url = (0, import_internals.getEffectiveUrl)(firstDatasource).value;
41
39
  if (!url) {
42
- throw new Error(`Could not get url from datasource ${firstDatasource.name} in ${schema.schemaPath}`);
40
+ throw new Error(
41
+ `Could not get url from datasource ${firstDatasource.name} in ${schemaContext.loadedFromPathForLogMessages}`
42
+ );
43
43
  }
44
- const schemaEngine = new import_chunk_ZOEKRXDP.SchemaEngine({ schemaPath: schema.schemaPath });
44
+ const migrate = await import_chunk_YSWLN2IJ.Migrate.setup({ schemaContext });
45
+ const schemaEngine = migrate.engine;
45
46
  const results = [];
46
47
  const errors = [];
47
48
  try {
@@ -91,6 +92,6 @@ async function introspectSingleQuery(schemaEngine, url, query) {
91
92
  };
92
93
  }
93
94
  }
94
- function isTypedSqlEnabled(config) {
95
- return config.generators.some((gen) => gen?.previewFeatures?.includes("typedSql"));
95
+ function isTypedSqlEnabled(generators) {
96
+ return generators.some((gen) => gen?.previewFeatures?.includes("typedSql"));
96
97
  }