aboutsummaryrefslogtreecommitdiffstats
path: root/internal/bolttest
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/bolttest
parentFix contributing link (diff)
downloadcli-5264264333f211c9d40108955e167d28fa73f77d.zip
Use DSN for handling connection parameters
Diffstat (limited to 'internal/bolttest')
-rw-r--r--internal/bolttest/db.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/bolttest/db.go b/internal/bolttest/db.go
index 743b8fc..3b75c61 100644
--- a/internal/bolttest/db.go
+++ b/internal/bolttest/db.go
@@ -29,12 +29,8 @@ func NewTestDB(t *testing.T) storage.DB {
func NewTestConnectionConfig() configloader.ConnectionConfig {
return configloader.ConnectionConfig{
+ DSN: os.Getenv("BOLT_DB_DSN"),
Driver: os.Getenv("BOLT_DB_DRIVER"),
- DBName: os.Getenv("BOLT_DB_NAME"),
- Host: os.Getenv("BOLT_DB_HOST"),
- Port: os.Getenv("BOLT_DB_PORT"),
- User: os.Getenv("BOLT_DB_USER"),
- Password: os.Getenv("BOLT_DB_PASSWORD"),
MigrationsTable: os.Getenv("BOLT_DB_MIGRATIONS_TABLE"),
}
}