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