working on ron-example

This commit is contained in:
2024-11-20 23:09:25 +01:00
parent ea5d85bd19
commit 4f108e1b05
25 changed files with 627 additions and 147 deletions
+18
View File
@@ -0,0 +1,18 @@
package repository
import (
"github.com/jackc/pgx/v5/pgxpool"
"ron-pets/internal/sqlc"
)
type pgxRepository struct {
*sqlc.Queries
db *pgxpool.Pool
}
func NewPGXRepo(db *pgxpool.Pool) ExtendedQuerier {
return &pgxRepository{
Queries: sqlc.New(db),
db: db,
}
}