Our great sponsors
-
weasel
The last Golang ORM you'll ever need, built like Active Record (with 1.18 Generics) (by ztcollazo)
-
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.
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.
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.