@prisma/migrate 6.5.0-dev.1 → 6.5.0-dev.3

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 (102) hide show
  1. package/dist/CLI.js +3 -4
  2. package/dist/Migrate.js +6 -7
  3. package/dist/SchemaEngine.js +6 -7
  4. package/dist/bin.js +116 -146
  5. package/dist/{chunk-WOOPRG54.js → chunk-255BRND3.js} +7 -14
  6. package/dist/{chunk-75EIHNAH.js → chunk-2NMFKGXM.js} +5 -6
  7. package/dist/chunk-3WC4XD74.js +98 -0
  8. package/dist/chunk-4EV2RVXY.js +226 -0
  9. package/dist/{chunk-YWWOSXMY.js → chunk-4JQIX6O7.js} +7 -15
  10. package/dist/{chunk-M5YNQ2NP.js → chunk-6DFJIBJX.js} +5 -12
  11. package/dist/{chunk-SGCF5OHF.js → chunk-7CQBDP4H.js} +6 -13
  12. package/dist/{chunk-7IT2ZO3D.js → chunk-AHJ2N6BJ.js} +3 -9
  13. package/dist/chunk-C2PR6JQR.js +266 -0
  14. package/dist/chunk-CTPONE6G.js +65 -0
  15. package/dist/{chunk-DUCG3NRP.js → chunk-D74DU52C.js} +633 -806
  16. package/dist/{chunk-UVNSK22K.js → chunk-DDHPSYC4.js} +122 -130
  17. package/dist/{chunk-CUDKD32S.js → chunk-DIAO4W7O.js} +11 -17
  18. package/dist/{chunk-XJQP3B4W.js → chunk-DJMFXNR4.js} +7 -15
  19. package/dist/{chunk-V5LEZ5BX.js → chunk-DY3QUOB7.js} +634 -807
  20. package/dist/{chunk-YD7GG4WS.js → chunk-FRTPDRF2.js} +66 -74
  21. package/dist/chunk-HIFVDK2U.js +96 -0
  22. package/dist/chunk-I4EY55DC.js +195 -0
  23. package/dist/{chunk-WLJHGKMK.js → chunk-IHDN3L3R.js} +7 -8
  24. package/dist/{chunk-INC2OACE.js → chunk-JFKDSUIE.js} +3 -9
  25. package/dist/{chunk-V7DE6JTG.js → chunk-JZ75RIMZ.js} +3 -9
  26. package/dist/{chunk-AAATUOV6.js → chunk-L6KOIJJ5.js} +53 -59
  27. package/dist/{chunk-GN5BY5N2.js → chunk-LGYRZ6CV.js} +4 -10
  28. package/dist/chunk-LVLRGTYH.js +148 -0
  29. package/dist/{chunk-CQQQ436N.js → chunk-MATFO4ZW.js} +186 -200
  30. package/dist/{chunk-IFCV5MY4.js → chunk-OCQGHQED.js} +5 -11
  31. package/dist/chunk-ORL3LJOT.js +470 -0
  32. package/dist/{chunk-Q7ACZDDT.js → chunk-QOPTDDIH.js} +5 -12
  33. package/dist/chunk-QTAIWPLH.js +78 -0
  34. package/dist/{chunk-35LAJN5S.js → chunk-RP2N6UXA.js} +23 -29
  35. package/dist/chunk-RQFGRXJI.js +174 -0
  36. package/dist/{chunk-QBK5XTJE.js → chunk-RR6BKMNO.js} +3 -9
  37. package/dist/{chunk-ILJRJJ3S.js → chunk-RTGQXNX6.js} +3 -9
  38. package/dist/chunk-SKRR5WT4.js +76 -0
  39. package/dist/chunk-TM3ETZES.js +153 -0
  40. package/dist/{chunk-KPUNMK5W.js → chunk-TWPTG4XS.js} +5 -12
  41. package/dist/{chunk-6QFE3AWR.js → chunk-UP6FVCDK.js} +6 -13
  42. package/dist/{chunk-YKUZUAXA.js → chunk-V3ZMNXZC.js} +16 -23
  43. package/dist/chunk-WLPX3672.js +365 -0
  44. package/dist/chunk-WNH2ACJS.js +122 -0
  45. package/dist/chunk-XSNOKQTD.js +347 -0
  46. package/dist/{chunk-X6XGFLEF.js → chunk-YZVZCC3I.js} +25 -30
  47. package/dist/commands/DbCommand.js +3 -4
  48. package/dist/commands/DbDrop.js +9 -9
  49. package/dist/commands/DbExecute.js +7 -8
  50. package/dist/commands/DbPull.js +18 -19
  51. package/dist/commands/DbPush.js +12 -13
  52. package/dist/commands/DbSeed.js +4 -5
  53. package/dist/commands/MigrateCommand.js +3 -4
  54. package/dist/commands/MigrateDeploy.js +13 -14
  55. package/dist/commands/MigrateDev.js +17 -18
  56. package/dist/commands/MigrateDiff.js +8 -9
  57. package/dist/commands/MigrateReset.js +15 -16
  58. package/dist/commands/MigrateResolve.js +11 -12
  59. package/dist/commands/MigrateStatus.js +11 -12
  60. package/dist/index.js +60 -77
  61. package/dist/{multipart-parser-73VM3J4A.js → multipart-parser-NDLECNMN.js} +527 -561
  62. package/dist/utils/byline.js +5 -6
  63. package/dist/utils/captureStdout.js +2 -3
  64. package/dist/utils/countModelsAndTypes.js +2 -3
  65. package/dist/utils/ensureDatabaseExists.js +8 -9
  66. package/dist/utils/errors.js +8 -9
  67. package/dist/utils/flagErrors.js +5 -5
  68. package/dist/utils/getDatabaseVersionSafe.js +6 -7
  69. package/dist/utils/getSchemaPathAndPrint.js +4 -5
  70. package/dist/utils/handleEvaluateDataloss.js +3 -4
  71. package/dist/utils/introspectSql.js +6 -6
  72. package/dist/utils/isSchemaEmpty.js +2 -3
  73. package/dist/utils/printDatasource.js +3 -4
  74. package/dist/utils/printDatasources.js +3 -4
  75. package/dist/utils/printFiles.js +5 -6
  76. package/dist/utils/printIntrospectedSchema.js +2 -3
  77. package/dist/utils/printMigrationId.js +4 -5
  78. package/dist/utils/promptForMigrationName.js +2 -3
  79. package/dist/utils/removeSchemaFiles.js +2 -3
  80. package/dist/utils/replaceOrAddDatasource.js +2 -3
  81. package/dist/utils/replaceOrAddDatasource.test.js +7 -8
  82. package/dist/utils/saveSchemaFiles.js +2 -3
  83. package/dist/utils/seed.js +6 -7
  84. package/dist/utils/spinner.js +2 -3
  85. package/dist/utils/unixSocket.js +2 -3
  86. package/dist/views/handleViewsIO.js +2 -3
  87. package/package.json +6 -6
  88. package/dist/chunk-26XQQ4AG.js +0 -386
  89. package/dist/chunk-2RSEPJFX.js +0 -165
  90. package/dist/chunk-4B2LXK4R.js +0 -207
  91. package/dist/chunk-4UJBOCZJ.js +0 -130
  92. package/dist/chunk-5HZLCY6X.js +0 -161
  93. package/dist/chunk-6TE2RIPN.js +0 -80
  94. package/dist/chunk-7S3Q4MCN.js +0 -480
  95. package/dist/chunk-AOX7CJAS.js +0 -234
  96. package/dist/chunk-FF3526PX.js +0 -279
  97. package/dist/chunk-FUSFURVP.js +0 -86
  98. package/dist/chunk-GCTCQLOF.js +0 -365
  99. package/dist/chunk-K44VNAFW.js +0 -189
  100. package/dist/chunk-O4BT6W33.js +0 -104
  101. package/dist/chunk-TKAGMA5K.js +0 -72
  102. package/dist/chunk-U374EXYQ.js +0 -106
@@ -26,15 +26,14 @@ 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_UVNSK22K_exports = {};
30
- __export(chunk_UVNSK22K_exports, {
31
- Migrate: () => Migrate,
32
- init_Migrate: () => init_Migrate
29
+ var chunk_DDHPSYC4_exports = {};
30
+ __export(chunk_DDHPSYC4_exports, {
31
+ Migrate: () => Migrate
33
32
  });
34
- module.exports = __toCommonJS(chunk_UVNSK22K_exports);
33
+ module.exports = __toCommonJS(chunk_DDHPSYC4_exports);
35
34
  var import_chunk_6C7ESGWY = require("./chunk-6C7ESGWY.js");
36
- var import_chunk_7S3Q4MCN = require("./chunk-7S3Q4MCN.js");
37
- var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
35
+ var import_chunk_ORL3LJOT = require("./chunk-ORL3LJOT.js");
36
+ var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
38
37
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
39
38
  var import_engines_version = require("@prisma/engines-version");
40
39
  var import_internals = require("@prisma/internals");
@@ -538,128 +537,121 @@ var require_log_update = (0, import_chunk_WWAWV7DQ.__commonJS)({
538
537
  module2.exports.create = main;
539
538
  }
540
539
  });
541
- var import_log_update, packageJson, Migrate;
542
- var init_Migrate = (0, import_chunk_WWAWV7DQ.__esm)({
543
- "src/Migrate.ts"() {
544
- (0, import_chunk_6TE2RIPN.init_colors)();
545
- import_log_update = (0, import_chunk_WWAWV7DQ.__toESM)(require_log_update());
546
- (0, import_chunk_7S3Q4MCN.init_SchemaEngine)();
547
- packageJson = eval(`require('../package.json')`);
548
- Migrate = class {
549
- constructor(schemaPath, enabledPreviewFeatures) {
550
- if (schemaPath) {
551
- this.schemaPath = import_path.default.resolve(process.cwd(), schemaPath);
552
- this.migrationsDirectoryPath = import_path.default.join(import_path.default.dirname(this.schemaPath), "migrations");
553
- this.engine = new import_chunk_7S3Q4MCN.SchemaEngine({
554
- schemaPath: this.schemaPath,
555
- enabledPreviewFeatures
556
- });
557
- } else {
558
- this.engine = new import_chunk_7S3Q4MCN.SchemaEngine({
559
- enabledPreviewFeatures
560
- });
561
- }
562
- }
563
- stop() {
564
- this.engine.stop();
565
- }
566
- getPrismaSchema() {
567
- if (!this.schemaPath) throw new Error("this.schemaPath is undefined");
568
- return (0, import_internals.getSchemaWithPath)(this.schemaPath);
569
- }
570
- reset() {
571
- return this.engine.reset();
572
- }
573
- createMigration(params) {
574
- return this.engine.createMigration(params);
575
- }
576
- diagnoseMigrationHistory({
577
- optInToShadowDatabase
578
- }) {
579
- if (!this.migrationsDirectoryPath) throw new Error("this.migrationsDirectoryPath is undefined");
580
- return this.engine.diagnoseMigrationHistory({
581
- migrationsDirectoryPath: this.migrationsDirectoryPath,
582
- optInToShadowDatabase
583
- });
584
- }
585
- listMigrationDirectories() {
586
- if (!this.migrationsDirectoryPath) throw new Error("this.migrationsDirectoryPath is undefined");
587
- return this.engine.listMigrationDirectories({
588
- migrationsDirectoryPath: this.migrationsDirectoryPath
589
- });
590
- }
591
- devDiagnostic() {
592
- if (!this.migrationsDirectoryPath) throw new Error("this.migrationsDirectoryPath is undefined");
593
- return this.engine.devDiagnostic({
594
- migrationsDirectoryPath: this.migrationsDirectoryPath
595
- });
596
- }
597
- async markMigrationApplied({ migrationId }) {
598
- if (!this.migrationsDirectoryPath) throw new Error("this.migrationsDirectoryPath is undefined");
599
- return await this.engine.markMigrationApplied({
600
- migrationsDirectoryPath: this.migrationsDirectoryPath,
601
- migrationName: migrationId
602
- });
603
- }
604
- markMigrationRolledBack({ migrationId }) {
605
- return this.engine.markMigrationRolledBack({
606
- migrationName: migrationId
607
- });
608
- }
609
- applyMigrations() {
610
- if (!this.migrationsDirectoryPath) throw new Error("this.migrationsDirectoryPath is undefined");
611
- return this.engine.applyMigrations({
612
- migrationsDirectoryPath: this.migrationsDirectoryPath
613
- });
614
- }
615
- async evaluateDataLoss() {
616
- if (!this.migrationsDirectoryPath) throw new Error("this.migrationsDirectoryPath is undefined");
617
- const schema = (0, import_internals.toSchemasContainer)((await this.getPrismaSchema()).schemas);
618
- return this.engine.evaluateDataLoss({
619
- migrationsDirectoryPath: this.migrationsDirectoryPath,
620
- schema
621
- });
622
- }
623
- async push({ force = false }) {
624
- const schema = (0, import_internals.toSchemasContainer)((await this.getPrismaSchema()).schemas);
625
- const { warnings, unexecutable, executedSteps } = await this.engine.schemaPush({
626
- force,
627
- schema
628
- });
629
- return {
630
- executedSteps,
631
- warnings,
632
- unexecutable
633
- };
634
- }
635
- async tryToRunGenerate(datasourceInfo) {
636
- if (!this.schemaPath) throw new Error("this.schemaPath is undefined");
637
- const skipEngines = (0, import_internals.isPrismaPostgres)(datasourceInfo.url);
638
- const message = [];
639
- process.stdout.write("\n");
640
- (0, import_log_update.default)(`Running generate... ${(0, import_chunk_6TE2RIPN.dim)("(Use --skip-generate to skip the generators)")}`);
641
- const generators = await (0, import_internals.getGenerators)({
642
- schemaPath: this.schemaPath,
643
- printDownloadProgress: true,
644
- version: import_engines_version.enginesVersion,
645
- cliVersion: packageJson.version,
646
- noEngine: skipEngines
647
- });
648
- for (const generator of generators) {
649
- (0, import_log_update.default)(`Running generate... - ${generator.getPrettyName()}`);
650
- const before = Math.round(performance.now());
651
- try {
652
- await generator.generate();
653
- const after = Math.round(performance.now());
654
- message.push((0, import_internals.getGeneratorSuccessMessage)(generator, after - before));
655
- generator.stop();
656
- } catch (e) {
657
- message.push(`${e.message}`);
658
- generator.stop();
659
- }
660
- }
661
- (0, import_log_update.default)(message.join("\n"));
662
- }
540
+ var import_log_update = (0, import_chunk_WWAWV7DQ.__toESM)(require_log_update());
541
+ var packageJson = eval(`require('../package.json')`);
542
+ var Migrate = class {
543
+ constructor(schemaPath, enabledPreviewFeatures) {
544
+ if (schemaPath) {
545
+ this.schemaPath = import_path.default.resolve(process.cwd(), schemaPath);
546
+ this.migrationsDirectoryPath = import_path.default.join(import_path.default.dirname(this.schemaPath), "migrations");
547
+ this.engine = new import_chunk_ORL3LJOT.SchemaEngine({
548
+ schemaPath: this.schemaPath,
549
+ enabledPreviewFeatures
550
+ });
551
+ } else {
552
+ this.engine = new import_chunk_ORL3LJOT.SchemaEngine({
553
+ enabledPreviewFeatures
554
+ });
555
+ }
556
+ }
557
+ stop() {
558
+ this.engine.stop();
559
+ }
560
+ getPrismaSchema() {
561
+ if (!this.schemaPath) throw new Error("this.schemaPath is undefined");
562
+ return (0, import_internals.getSchemaWithPath)(this.schemaPath);
563
+ }
564
+ reset() {
565
+ return this.engine.reset();
566
+ }
567
+ createMigration(params) {
568
+ return this.engine.createMigration(params);
569
+ }
570
+ diagnoseMigrationHistory({
571
+ optInToShadowDatabase
572
+ }) {
573
+ if (!this.migrationsDirectoryPath) throw new Error("this.migrationsDirectoryPath is undefined");
574
+ return this.engine.diagnoseMigrationHistory({
575
+ migrationsDirectoryPath: this.migrationsDirectoryPath,
576
+ optInToShadowDatabase
577
+ });
578
+ }
579
+ listMigrationDirectories() {
580
+ if (!this.migrationsDirectoryPath) throw new Error("this.migrationsDirectoryPath is undefined");
581
+ return this.engine.listMigrationDirectories({
582
+ migrationsDirectoryPath: this.migrationsDirectoryPath
583
+ });
584
+ }
585
+ devDiagnostic() {
586
+ if (!this.migrationsDirectoryPath) throw new Error("this.migrationsDirectoryPath is undefined");
587
+ return this.engine.devDiagnostic({
588
+ migrationsDirectoryPath: this.migrationsDirectoryPath
589
+ });
590
+ }
591
+ async markMigrationApplied({ migrationId }) {
592
+ if (!this.migrationsDirectoryPath) throw new Error("this.migrationsDirectoryPath is undefined");
593
+ return await this.engine.markMigrationApplied({
594
+ migrationsDirectoryPath: this.migrationsDirectoryPath,
595
+ migrationName: migrationId
596
+ });
597
+ }
598
+ markMigrationRolledBack({ migrationId }) {
599
+ return this.engine.markMigrationRolledBack({
600
+ migrationName: migrationId
601
+ });
602
+ }
603
+ applyMigrations() {
604
+ if (!this.migrationsDirectoryPath) throw new Error("this.migrationsDirectoryPath is undefined");
605
+ return this.engine.applyMigrations({
606
+ migrationsDirectoryPath: this.migrationsDirectoryPath
607
+ });
608
+ }
609
+ async evaluateDataLoss() {
610
+ if (!this.migrationsDirectoryPath) throw new Error("this.migrationsDirectoryPath is undefined");
611
+ const schema = (0, import_internals.toSchemasContainer)((await this.getPrismaSchema()).schemas);
612
+ return this.engine.evaluateDataLoss({
613
+ migrationsDirectoryPath: this.migrationsDirectoryPath,
614
+ schema
615
+ });
616
+ }
617
+ async push({ force = false }) {
618
+ const schema = (0, import_internals.toSchemasContainer)((await this.getPrismaSchema()).schemas);
619
+ const { warnings, unexecutable, executedSteps } = await this.engine.schemaPush({
620
+ force,
621
+ schema
622
+ });
623
+ return {
624
+ executedSteps,
625
+ warnings,
626
+ unexecutable
663
627
  };
664
628
  }
665
- });
629
+ async tryToRunGenerate(datasourceInfo) {
630
+ if (!this.schemaPath) throw new Error("this.schemaPath is undefined");
631
+ const skipEngines = (0, import_internals.isPrismaPostgres)(datasourceInfo.url);
632
+ const message = [];
633
+ process.stdout.write("\n");
634
+ (0, import_log_update.default)(`Running generate... ${(0, import_chunk_SKRR5WT4.dim)("(Use --skip-generate to skip the generators)")}`);
635
+ const generators = await (0, import_internals.getGenerators)({
636
+ schemaPath: this.schemaPath,
637
+ printDownloadProgress: true,
638
+ version: import_engines_version.enginesVersion,
639
+ cliVersion: packageJson.version,
640
+ noEngine: skipEngines
641
+ });
642
+ for (const generator of generators) {
643
+ (0, import_log_update.default)(`Running generate... - ${generator.getPrettyName()}`);
644
+ const before = Math.round(performance.now());
645
+ try {
646
+ await generator.generate();
647
+ const after = Math.round(performance.now());
648
+ message.push((0, import_internals.getGeneratorSuccessMessage)(generator, after - before));
649
+ generator.stop();
650
+ } catch (e) {
651
+ message.push(`${e.message}`);
652
+ generator.stop();
653
+ }
654
+ }
655
+ (0, import_log_update.default)(message.join("\n"));
656
+ }
657
+ };
@@ -16,12 +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_CUDKD32S_exports = {};
20
- __export(chunk_CUDKD32S_exports, {
21
- createSpinner: () => createSpinner,
22
- init_spinner: () => init_spinner
19
+ var chunk_DIAO4W7O_exports = {};
20
+ __export(chunk_DIAO4W7O_exports, {
21
+ createSpinner: () => createSpinner
23
22
  });
24
- module.exports = __toCommonJS(chunk_CUDKD32S_exports);
23
+ module.exports = __toCommonJS(chunk_DIAO4W7O_exports);
25
24
  var import_chunk_YUCPBDWV = require("./chunk-YUCPBDWV.js");
26
25
  var import_chunk_RM5LJIEV = require("./chunk-RM5LJIEV.js");
27
26
  var import_chunk_6C7ESGWY = require("./chunk-6C7ESGWY.js");
@@ -5734,6 +5733,13 @@ var require_ora = (0, import_chunk_WWAWV7DQ.__commonJS)({
5734
5733
  };
5735
5734
  }
5736
5735
  });
5736
+ var import_ora = (0, import_chunk_WWAWV7DQ.__toESM)(require_ora());
5737
+ var defaultOraOptions = {
5738
+ spinner: "dots",
5739
+ color: "cyan",
5740
+ indent: 0,
5741
+ stream: process.stdout
5742
+ };
5737
5743
  function createSpinner(enableOutput = true, oraOptions = {}) {
5738
5744
  const actualOptions = { ...defaultOraOptions, ...oraOptions };
5739
5745
  return (text) => {
@@ -5766,15 +5772,3 @@ function createSpinner(enableOutput = true, oraOptions = {}) {
5766
5772
  };
5767
5773
  };
5768
5774
  }
5769
- var import_ora, defaultOraOptions;
5770
- var init_spinner = (0, import_chunk_WWAWV7DQ.__esm)({
5771
- "src/utils/spinner.ts"() {
5772
- import_ora = (0, import_chunk_WWAWV7DQ.__toESM)(require_ora());
5773
- defaultOraOptions = {
5774
- spinner: "dots",
5775
- color: "cyan",
5776
- indent: 0,
5777
- stream: process.stdout
5778
- };
5779
- }
5780
- });
@@ -16,19 +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_XJQP3B4W_exports = {};
20
- __export(chunk_XJQP3B4W_exports, {
19
+ var chunk_DJMFXNR4_exports = {};
20
+ __export(chunk_DJMFXNR4_exports, {
21
21
  ensureCanConnectToDatabase: () => ensureCanConnectToDatabase,
22
22
  ensureDatabaseExists: () => ensureDatabaseExists,
23
23
  getDatasourceInfo: () => getDatasourceInfo,
24
24
  getDbLocation: () => getDbLocation,
25
- init_ensureDatabaseExists: () => init_ensureDatabaseExists,
26
25
  prettifyProvider: () => prettifyProvider
27
26
  });
28
- module.exports = __toCommonJS(chunk_XJQP3B4W_exports);
29
- var import_chunk_KPUNMK5W = require("./chunk-KPUNMK5W.js");
30
- var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
31
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
27
+ module.exports = __toCommonJS(chunk_DJMFXNR4_exports);
28
+ var import_chunk_TWPTG4XS = require("./chunk-TWPTG4XS.js");
29
+ var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
32
30
  var import_internals = require("@prisma/internals");
33
31
  async function getDatasourceInfo({
34
32
  schemaPath,
@@ -156,7 +154,7 @@ async function ensureDatabaseExists(action, schemaPath) {
156
154
  let message2 = `${prettyProvider} database${credentials.database ? ` ${credentials.database} ` : " "}created`;
157
155
  const dbLocation = getDbLocation(credentials);
158
156
  if (dbLocation) {
159
- message2 += ` at ${(0, import_chunk_6TE2RIPN.bold)(dbLocation)}`;
157
+ message2 += ` at ${(0, import_chunk_SKRR5WT4.bold)(dbLocation)}`;
160
158
  }
161
159
  return message2;
162
160
  }
@@ -166,7 +164,7 @@ function getDbLocation(credentials) {
166
164
  if (credentials.type === "sqlite") {
167
165
  return credentials.uri;
168
166
  }
169
- const socket = (0, import_chunk_KPUNMK5W.getSocketFromDatabaseCredentials)(credentials);
167
+ const socket = (0, import_chunk_TWPTG4XS.getSocketFromDatabaseCredentials)(credentials);
170
168
  if (socket) {
171
169
  return `unix:${socket}`;
172
170
  } else if (credentials.host && credentials.port) {
@@ -195,9 +193,3 @@ function prettifyProvider(provider) {
195
193
  return `MongoDB`;
196
194
  }
197
195
  }
198
- var init_ensureDatabaseExists = (0, import_chunk_WWAWV7DQ.__esm)({
199
- "src/utils/ensureDatabaseExists.ts"() {
200
- (0, import_chunk_6TE2RIPN.init_colors)();
201
- (0, import_chunk_KPUNMK5W.init_unixSocket)();
202
- }
203
- });