Our great sponsors
-
bob
SQL query builder and ORM/Factory generator for Go with support for PostgreSQL, MySQL and SQLite (by stephenafamo)
-
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.
-
Gin
Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
An ORM will save you some initial development time, but will often become troublesome in the long run, to the extent of influencing and constraining your application design. SQL itself is very precise, and a small library like sqlx can give you all the bells and whistles you need to build out your app while keeping the codebase clean.
I created Bob because I felt that existing ORMs/Query builders don't work well for more complex queries.
I am also adding ORM features, starting with postgres, and it is what I will use for my own projects going forward. As an ORM, I think it can do even more than existing packages(e.g., preloading with left joins).
I like sqlboiler. Generate a Go ORM based on your DB schema.
Framework - Gin ORM - Gorm
Framework - Gin ORM - Gorm