the Go ORM that stays developer friendly without cutting corners

AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.

Why it matters

Go developers doing CRUD-heavy work can adopt a mature, MIT-licensed ORM that eliminates SQL boilerplate while still allowing raw SQL escape hatches.

Read this as

GORM is a free, open-source tool for programmers using the Go language that was first released in 2013. It lets developers work with databases without writing SQL, the standard database query language, by hand for every task. It has grown over a decade into a polished project with tests for every feature and add-ons for things like database metrics.

This is a promotional overview of GORM, a decade-old open-source Go ORM, not news of a new release. Teams building CRUD-heavy Go applications gain a comprehensive, MIT-licensed option with a plugin ecosystem, but the cost is a heavier dependency and the familiar ORM trade-off of abstraction versus control. No adoption figures, pricing, or recent version details are given.

GORM maps Go structs to database tables over the standard database/sql package, supporting associations (Has One, Has Many, Belongs To, Many To Many), polymorphism, single-table inheritance, nested transactions with savepoints, and Preload/Joins eager loading to avoid N+1 queries. It offers dry run and prepared statement modes, context support for query cancellation, auto migrations, composite primary keys, and a plugin API (Database Resolver, Prometheus). Raw SQL, NamedArg, and a SQL builder remain available as escape hatches.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

GORM Go Prometheus Database Resolver GORM Gen

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading