mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
feat: wip postgres support
This commit is contained in:
parent
ffa2447c59
commit
cc0c071cce
16 changed files with 362 additions and 211 deletions
|
@ -59,7 +59,7 @@ func main() {
|
|||
log.Info().Msgf("Log-level: %v", cfg.LogLevel)
|
||||
|
||||
// open database connection
|
||||
db := database.NewSqliteDB(configPath)
|
||||
db, _ := database.NewDB(cfg)
|
||||
if err := db.Open(); err != nil {
|
||||
log.Fatal().Err(err).Msg("could not open db connection")
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ func main() {
|
|||
}
|
||||
|
||||
// open database connection
|
||||
db := database.NewSqliteDB(configPath)
|
||||
db, _ := database.NewDB(domain.Config{ConfigPath: configPath})
|
||||
if err := db.Open(); err != nil {
|
||||
log.Fatal("could not open db connection")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue