diff --git a/cmd/config.toml b/cmd/config.toml index 1c00eef..504d344 100644 --- a/cmd/config.toml +++ b/cmd/config.toml @@ -1,5 +1,5 @@ [database] -backend = "sqlite3" +driver = "sqlite3" url = "gopay.db" ssl = false max = 30 diff --git a/internal/config/config.go b/internal/config/config.go index d0eb344..8365715 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -8,11 +8,11 @@ type Config struct { // Database configuration type Database struct { - Backend string `toml:"backend"` - URL string `toml:"url"` - SSL bool `toml:"ssl"` - Max int `toml:"max"` - Idle int `toml:"idle"` + Driver string `toml:"driver"` + URL string `toml:"url"` + SSL bool `toml:"ssl"` + Max int `toml:"max"` + Idle int `toml:"idle"` } // Log configuration