Files
mtusi2026lab2/src/backend/repositories/health.go
T

20 lines
294 B
Go

package repositories
import (
"context"
"github.com/jackc/pgx/v5/pgxpool"
)
type HealthStore struct {
db *pgxpool.Pool
}
func NewHealthStore(db *pgxpool.Pool) *HealthStore {
return &HealthStore{db: db}
}
func (s *HealthStore) Ping(ctx context.Context) error {
return s.db.Ping(ctx)
}