diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-07-23 21:39:11 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-07-23 21:39:11 -0400 |
| commit | 5264264333f211c9d40108955e167d28fa73f77d (patch) | |
| tree | 6801a3d0460360bff5bc0b76ac482fa774e97043 /internal/storage/postgresql.go | |
| parent | Fix contributing link (diff) | |
| download | cli-5264264333f211c9d40108955e167d28fa73f77d.zip | |
Use DSN for handling connection parameters
Diffstat (limited to 'internal/storage/postgresql.go')
| -rw-r--r-- | internal/storage/postgresql.go | 9 |
1 files changed, 0 insertions, 9 deletions
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, - ) -} |