Different ways of working with SQL Databases in Go

(packagemain.tech)

This is a great post summarizing the pro's and con's of different ways of working with databases in Go.

Summarized table:

Approach Type Safety Performance Learning Curve Abstraction Level SQL Visibility
database/sql No High Low Low High
sqlx No High Low Medium-Low High
GORM No Lower High High Low
sqlc Yes High Medium Medium High