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/configloader/configloader.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'internal/configloader/configloader.go') diff --git a/internal/configloader/configloader.go b/internal/configloader/configloader.go index 842dcfb..81a9564 100644 --- a/internal/configloader/configloader.go +++ b/internal/configloader/configloader.go @@ -55,12 +55,8 @@ type MigrationsConfig struct { } type ConnectionConfig struct { - Host string `toml:"host" env:"HOST"` - Port string `toml:"port" env:"PORT"` - User string `toml:"user" env:"USER"` - Password string `toml:"password" env:"PASSWORD"` - DBName string `toml:"dbname" env:"NAME"` - Driver string `toml:"driver" env:"DRIVER"` + DSN string `toml:"dsn" env:"DSN"` + Driver string `toml:"driver" env:"DRIVER"` MigrationsTable string `toml:"migrations_table" env:"MIGRATIONS_TABLE"` } -- cgit v1.2.3