change slite driver settings
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user