feat: wip postgres support

This commit is contained in:
Ludvig Lundgren 2022-03-27 03:12:00 +02:00
parent ffa2447c59
commit cc0c071cce
16 changed files with 362 additions and 211 deletions

View file

@ -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(),