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
@@ -8,14 +8,14 @@ import (
"sort"
"time"
"github.com/ostafen/clover/v2"
"github.com/jackc/pgx/v5/pgxpool"
)
type RecalculateTimeWindowHighSharesJob struct {
DB *clover.DB
DB *pgxpool.Pool
}
func NewRecalculateTimeWindowHighSharesJob(db *clover.DB) *RecalculateTimeWindowHighSharesJob {
func NewRecalculateTimeWindowHighSharesJob(db *pgxpool.Pool) *RecalculateTimeWindowHighSharesJob {
return &RecalculateTimeWindowHighSharesJob{DB: db}
}