change slite driver settings

This commit is contained in:
Yevhen Odynets
2026-09-30 09:56:01 +03:00
parent 346369ca11
commit 8e986ad2f1
+1 -1
View File
@@ -20,7 +20,7 @@ var srrdbSchema string
// The driver name is read from db.ext.driver (sqlite, modernc.org/sqlite), so // The driver name is read from db.ext.driver (sqlite, modernc.org/sqlite), so
// the driver can be replaced in configuration without touching this file. // the driver can be replaced in configuration without touching this file.
func NewSrrdb() *sqlx.DB { func NewSrrdb() *sqlx.DB {
driver := viper.GetString("db.ext.driver") driver := viper.GetString("srrdb.driver")
path := viper.GetString("srrdb.database") path := viper.GetString("srrdb.database")
db, err := sqlx.Connect(driver, path) db, err := sqlx.Connect(driver, path)