Upgraded to pgx

This commit is contained in:
Magnus Åhall 2025-09-23 21:47:39 +02:00
parent 825cf0fc9a
commit ad601219ec
3 changed files with 66 additions and 49 deletions

View file

@ -21,10 +21,7 @@ package dbschema
import (
// External
_ "github.com/lib/pq"
// Standard
"database/sql"
"github.com/jackc/pgx/v5/pgxpool"
)
// An upgrader verifies the schema for one or more databases and upgrades them if possible.
@ -42,7 +39,7 @@ type Database struct {
Username string
Password string
db *sql.DB
db *pgxpool.Pool
upgrader *Upgrader
}