GORM

A developer-friendly, full-featured ORM for Go with associations, hooks and auto-migrations.

GORM provides model structs, associations, transactions, hooks and auto-migration for Go applications. It supports PostgreSQL, MySQL, SQLite and SQL Server. Some Go developers prefer lighter SQL tools, but GORM remains the most common Go ORM.

Type
Library
Category
Data
Maintainer
Jinzhu and GORM contributors
First released
2013
License
Open source (MIT)
Pricing
Open source
Level
Beginner
Technologies
go, sql
GitHub stars
40,013
Latest release
[object Object]
Last verified
26 Nov 2026

What GORM is used for

  • CRUD-heavy Go services
  • Rapid prototyping in Go

Strengths

  • Feature-rich
  • Easy CRUD
  • Auto-migration

Limitations

  • Reflection-based, so less compile-time safety
  • Can hide inefficient queries

GORM alternatives

How it relates to other tools

  • GORM works with Gin
  • GORM built on Go

Built with the same technologies

Official links

Sources

Explore