aboutsummaryrefslogtreecommitdiffstats
path: root/internal/storage/postgresql.go
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2025-07-23 21:39:11 -0400
committerEugene Triguba <hello@eugenetriguba.com>2025-07-23 21:39:11 -0400
commit5264264333f211c9d40108955e167d28fa73f77d (patch)
tree6801a3d0460360bff5bc0b76ac482fa774e97043 /internal/storage/postgresql.go
parentFix contributing link (diff)
downloadcli-5264264333f211c9d40108955e167d28fa73f77d.zip
Use DSN for handling connection parameters
Diffstat (limited to 'internal/storage/postgresql.go')
-rw-r--r--internal/storage/postgresql.go9
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,
- )
-}