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/bolttest | |
| parent | Fix contributing link (diff) | |
| download | cli-5264264333f211c9d40108955e167d28fa73f77d.zip | |
Use DSN for handling connection parameters
Diffstat (limited to 'internal/bolttest')
| -rw-r--r-- | internal/bolttest/db.go | 6 |
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"), } } |