From 9d2abbe510d1719bcfe31db901423376f79b7894 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 9 Mar 2024 15:50:21 -0500 Subject: Add MySQL support --- internal/commands/status.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'internal/commands/status.go') diff --git a/internal/commands/status.go b/internal/commands/status.go index 76f7427..d44a132 100644 --- a/internal/commands/status.go +++ b/internal/commands/status.go @@ -44,15 +44,12 @@ func (m *StatusCmd) Execute( return subcommands.ExitFailure } - db, err := storage.DBConnect( - cfg.Connection.Driver, - storage.DBConnectionString(&cfg.Connection), - ) + db, err := storage.DBConnect(cfg.Connection) if err != nil { consoleOutputter.Error(fmt.Errorf("unable to connect to database: %w", err)) return subcommands.ExitFailure } - defer db.Close() + defer db.Session.Close() migrationDBRepo, err := repositories.NewMigrationDBRepo(db) if err != nil { -- cgit v1.2.3