mirror of
https://github.com/aykhans/movier.git
synced 2025-07-18 00:14:01 +00:00
pgx.Conn -> pgxpool.Pool
This commit is contained in:
@@ -4,15 +4,16 @@ import (
|
||||
"context"
|
||||
|
||||
"github.com/jackc/pgx/v5"
|
||||
"github.com/jackc/pgx/v5/pgxpool"
|
||||
|
||||
"github.com/aykhans/movier/server/pkg/dto"
|
||||
)
|
||||
|
||||
type IMDbRepository struct {
|
||||
db *pgx.Conn
|
||||
db *pgxpool.Pool
|
||||
}
|
||||
|
||||
func NewIMDbRepository(db *pgx.Conn) *IMDbRepository {
|
||||
func NewIMDbRepository(db *pgxpool.Pool) *IMDbRepository {
|
||||
return &IMDbRepository{
|
||||
db: db,
|
||||
}
|
||||
|
Reference in New Issue
Block a user