mirror of
https://git.gibonuddevalla.se/go/dbschema.git
synced 2025-12-05 21:31:14 +01:00
Upgraded to pgx
This commit is contained in:
parent
825cf0fc9a
commit
ad601219ec
3 changed files with 66 additions and 49 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue