I'm trying to use ent on golang backed with postgresql DB.
Current legacy code uses pgxpool for connection pool. But ent
does not support pgx pool, and only support standard connection pool of database/sql
.
What is difference between two? Is it ok to use standard connection pool with PostgreSQL database? or should I use pgx pool for this?
tl/dr;
database/sql can be initialized to work with pgx driver for postgres.
db, err := sql.Open("pgx", databaseDsn)
it depends of your needs