to orm, or not to orm

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

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

    Fluent SQL generation for golang

  • I love ORMs. As someone who has worked with Rails in the past, I realized that it saves a ton of time and energy to just call User.find(:id). When I switched to Go, I realized just how much I really needed it to feel comfortable. Writing a bunch of Raw SQL and functions that basically just return SQL is hard. You could use a query builder like squirrel, but a lot of times that seems kind of like writing SQL, just with Go syntax. So I decided to create my own ORM, built on Generics, that feels just like Active Record. You can see it here. I love it. If you don't want to use mine specifically, there are a few other options out there, such as Gorm or Ent, also.

  • weasel

    The last Golang ORM you'll ever need, built like Active Record (with 1.18 Generics) (by ztcollazo)

  • I love ORMs. As someone who has worked with Rails in the past, I realized that it saves a ton of time and energy to just call User.find(:id). When I switched to Go, I realized just how much I really needed it to feel comfortable. Writing a bunch of Raw SQL and functions that basically just return SQL is hard. You could use a query builder like squirrel, but a lot of times that seems kind of like writing SQL, just with Go syntax. So I decided to create my own ORM, built on Generics, that feels just like Active Record. You can see it here. I love it. If you don't want to use mine specifically, there are a few other options out there, such as Gorm or Ent, also.

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

    InfluxDB logo
  • sqlc

    Generate type-safe code from SQL

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