fix(postgres): map driver errors and keep shared pool after migrations

This commit is contained in:
Голиков Maximillian Антон
2026-10-02 08:55:21 +03:00
parent 322ef09c1f
commit 45b3606259
2 changed files with 27 additions and 2 deletions
-1
View File
@@ -62,7 +62,6 @@ func Connect(ctx context.Context, cfg Config) (*pgxpool.Pool, error) {
func RunMigrations(ctx context.Context, pool *pgxpool.Pool) error {
db := stdlib.OpenDBFromPool(pool)
defer db.Close()
goose.SetBaseFS(migrations.FS)
if err := goose.SetDialect("postgres"); err != nil {