more database refinements along with new command line options

This commit is contained in:
2026-03-05 16:25:33 -07:00
parent 55c5c88c95
commit 3c7c91fa1b
5 changed files with 32 additions and 7 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ var amdb *sqlx.DB
// SetupDb sets up the database and associated items.
func SetupDb() (func(), error) {
exitfns := make([]func(), 0, 2)
db, err := sqlx.Open(config.GlobalConfig.Database.Driver, config.GlobalConfig.Database.Dsn)
db, err := sqlx.Connect(config.GlobalComputedConfig.DatabaseDriver, config.GlobalComputedConfig.DatabaseDSN)
if err == nil {
amdb = db
setupAdCache()