1.8 KiB
1.8 KiB
GORM
Easy-to-use ORM lib for Golang.
Highlights
- Full-featured ORM
- Relationship types (Has one, Has many, Belong to, many to many, polymorphism, single-table inheritance)
- Hooks (Before/After, Create/Save/Update/Delete/Find)
- Eager loading by
Preload
,Joins
- Transaction, nested transactions, savepoint, RollbackTo
- 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
- Migration
- Logger
- Extendable, flexible plugin API: Database resolver (Multiple databases, read/write splitting) / Prometheus…
Getting started
- GORM guide https://gorm.io
- Gen guide https://gorm.io/gen/index.html
Contribute
You can help to deliver a better GORM, check out things you can do
Thank you for contributing to the GORM framework!
License
© Jinzhu and GORM's committer, 2013 - 2023
Released under the MIT License