Migrate to postgres

This commit is contained in:
Pijus Kamandulis
2026-08-08 01:26:32 +03:00
parent b8511f5ff8
commit 4fc3a7fb0a
12 changed files with 671 additions and 240 deletions
+3 -3
View File
@@ -9,14 +9,14 @@ import (
"sort"
"time"
"github.com/ostafen/clover/v2"
"github.com/jackc/pgx/v5/pgxpool"
)
type RecalculateTopSharesJob struct {
DB *clover.DB
DB *pgxpool.Pool
}
func NewRecalculateTopSharesJob(db *clover.DB) *RecalculateTopSharesJob {
func NewRecalculateTopSharesJob(db *pgxpool.Pool) *RecalculateTopSharesJob {
return &RecalculateTopSharesJob{DB: db}
}