Which framework and ORM should we choose?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • sqlx

    general purpose extensions to golang's database/sql

  • 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.

  • bob

    SQL query builder and ORM/Factory generator for Go with support for PostgreSQL, MySQL and SQLite (by stephenafamo)

  • I created Bob because I felt that existing ORMs/Query builders don't work well for more complex queries.

  • 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.

    WorkOS logo
  • bobgen-psql

  • 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).

  • SQLBoiler

    Generate a Go ORM tailored to your database schema.

  • I like sqlboiler. Generate a Go ORM based on your DB schema.

  • 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.

  • Framework - Gin ORM - Gorm

  • GORM

    The fantastic ORM library for Golang, aims to be developer friendly

  • Framework - Gin ORM - Gorm

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts