change driver name

This commit is contained in:
namhq1989 2023-02-03 20:17:40 +07:00
parent 1e281e2174
commit 61dc703927
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ func Connect(cfg Config, server string) (db *sql.DB, err error) {
// connect // connect
if cfg.UseElasticAPM { if cfg.UseElasticAPM {
db, err = apmsql.Open("pgx", uri) db, err = apmsql.Open("pgxv4", uri)
} else { } else {
db, err = sql.Open("pgx", uri) db, err = sql.Open("pgx", uri)
} }