From 11bfad284441e3a4f116a5497f8377d2a23462d2 Mon Sep 17 00:00:00 2001 From: perp Date: Sun, 2 Jun 2024 12:58:48 +0100 Subject: [PATCH] Renamed backend to driver --- cmd/config.toml | 2 +- internal/config/config.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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