mirror of
https://github.com/idanoo/autobrr
synced 2025-07-22 16:29:12 +00:00
feat: wip postgres support
This commit is contained in:
parent
ffa2447c59
commit
cc0c071cce
16 changed files with 362 additions and 211 deletions
|
@ -12,7 +12,7 @@ import (
|
|||
)
|
||||
|
||||
type DownloadClientRepo struct {
|
||||
db *SqliteDB
|
||||
db *DB
|
||||
cache *clientCache
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,7 @@ func (c *clientCache) Pop(id int) {
|
|||
c.mu.Unlock()
|
||||
}
|
||||
|
||||
func NewDownloadClientRepo(db *SqliteDB) domain.DownloadClientRepo {
|
||||
func NewDownloadClientRepo(db *DB) domain.DownloadClientRepo {
|
||||
return &DownloadClientRepo{
|
||||
db: db,
|
||||
cache: NewClientCache(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue