go-gorm/gorm
#331 this week
The fantastic ORM library for Golang, aims to be developer friendly
39.9K stars
4.2K forks
39.9K GitHub watchers
Updated 7/30/2026
Backblaze Generative Media Hackathon
Build the next generation of AI media apps with Genblaze, stored on Backblaze B2. $10,000 in prizes.
Loading star history...
Use Cases & Benefits
- Provides a full-featured ORM library for Go to simplify database interactions with developer-friendly APIs.
- Offers extensive features like associations, hooks, transactions, eager loading, and auto migrations for robust and flexible data management.
- Use for building complex relational data models with support for various association types in Go applications.
- Use for implementing transactional workflows with nested transactions and save points to ensure data integrity.
- Use for optimizing database operations using batch inserts, SQL builders, and read/write splitting across multiple databases.
About gorm
GORM
The fantastic ORM library for Golang, aims to be developer friendly.
Overview
- Full-Featured ORM
- Associations (Has One, Has Many, Belongs To, Many To Many, Polymorphism, Single-table inheritance)
- Hooks (Before/After Create/Save/Update/Delete/Find)
- Eager loading with
Preload,Joins - Transactions, Nested Transactions, Save Point, RollbackTo to Saved Point
- Context, Prepared Statement Mode, DryRun Mode
- Batch Insert, FindInBatches, Find To Map
- SQL Builder, Upsert, Locking, Optimizer/Index/Comment Hints, NamedArg, Search/Update/Create with SQL Expr
- Composite Primary Key
- Auto Migrations
- Logger
- Extendable, flexible plugin API: Database Resolver (Multiple Databases, Read/Write Splitting) / Prometheus…
- Every feature comes with tests
- Developer Friendly
Getting Started
- GORM Guides https://gorm.io
- Gen Guides https://gorm.io/gen/index.html
Contributing
You can help to deliver a better GORM, check out things you can do
Contributors
Thank you for contributing to the GORM framework!
License
© Jinzhu, 2013~time.Now
Released under the MIT License
Discover Repositories
Search across tracked repositories by name or description