Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
SQLBoiler but currently building an evolved version with generics and more flexibility.
squirrel is very good when you want to parameterize a where clause in a simple query. It is bad if your query is not simple -- it has no good way to handle common table expressions or nested queries. Perhaps there's some magic I missed.
Ent with Atlas. I wrote about the motivation for creating it a year ago - https://www.reddit.com/r/golang/comments/t08oox/comment/hy8m5dy/?utm_source=share&utm_medium=web2x&context=3
I typically use sqlc instead of any other ORM alternatives, in cases where you may need to build queries dynamically, for example when conditions are driven by Go code you may consider using squirrel for those cases.
I recommend against sqlx. If for no other reason the number of outstanding issues and pull requests.
For migrations I use https://github.com/golang-migrate/migrate, it works great
Ent with Atlas. I wrote about the motivation for creating it a year ago - https://www.reddit.com/r/golang/comments/t08oox/comment/hy8m5dy/?utm_source=share&utm_medium=web2x&context=3
I use Bun by Uptrace - https://github.com/uptrace/bun