func initHistoryDb(app *App) { historyDb, err := db.Open(app.config.DatabaseUrl) if err != nil { app.log.Panic(app.ctx, err) } app.historyDb = historyDb }
func initCoreDb(app *App) { coreDb, err := db.Open(app.config.StellarCoreDatabaseUrl) if err != nil { app.log.Panic(app.ctx, err) } app.coreDb = coreDb }
func initHistoryDb(app *App) { historyDb, err := db.Open(app.config.DatabaseUrl) if err != nil { log.Panic(err) } historyDb.SetMaxIdleConns(4) historyDb.SetMaxOpenConns(12) app.historyDb = historyDb }
func initCoreDb(app *App) { coreDb, err := db.Open(app.config.StellarCoreDatabaseUrl) if err != nil { log.Panic(err) } coreDb.SetMaxIdleConns(4) coreDb.SetMaxOpenConns(12) app.coreDb = coreDb }