Mysql vs Postgres drivers for go

why is this mysql driver github.com/go-sql-driver/mysql more maintained than this postgres driver lib/pq: Pure Go Postgres driver for database/sql ? (the last commit was 8 months ago!)

I know that there is this driver jackc/pgx: PostgreSQL driver and toolkit for Go but it seems to be less popular than the previous one. Anyway what driver would you recommend when using Postgres? so far I haven't had any problems with lib/pq but i have heard that people don't recommend it anymore, so they choose pgx instead...

Posted Jul 9, 2025, 11:14 PM UTC

94
Loading comments…