From 5264264333f211c9d40108955e167d28fa73f77d Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Wed, 23 Jul 2025 21:39:11 -0400 Subject: Use DSN for handling connection parameters --- internal/storage/postgresql.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'internal/storage/postgresql.go') diff --git a/internal/storage/postgresql.go b/internal/storage/postgresql.go index d93d014..08a9d3e 100644 --- a/internal/storage/postgresql.go +++ b/internal/storage/postgresql.go @@ -3,8 +3,6 @@ package storage import ( "fmt" "strings" - - "github.com/eugenetriguba/bolt/internal/configloader" ) type PostgresqlAdapter struct{} @@ -68,10 +66,3 @@ func (p PostgresqlAdapter) DatabaseName(executor sqlExecutor) (string, error) { return name, nil } - -func (p PostgresqlAdapter) CreateDSN(cfg configloader.ConnectionConfig) string { - return fmt.Sprintf( - "host=%s port=%s user=%s password=%s dbname=%s sslmode=disable", - cfg.Host, cfg.Port, cfg.User, cfg.Password, cfg.DBName, - ) -} -- cgit v1.2.3