44 lines
1.8 KiB
Markdown
44 lines
1.8 KiB
Markdown
# GORM
|
|
|
|
Easy-to-use ORM lib for Golang.
|
|
|
|
[](https://goreportcard.com/report/github.com/go-gorm/gorm)
|
|
[](https://github.com/go-gorm/gorm/actions)
|
|
[](https://opensource.org/licenses/MIT)
|
|
[](https://pkg.go.dev/gorm.io/gorm?tab=doc)
|
|
|
|
## 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](https://gorm.io)
|
|
* Gen guide [https://gorm.io/gen/index.html](https://gorm.io/gen/index.html)
|
|
|
|
## Contribute
|
|
|
|
[You can help to deliver a better GORM, check out things you can do](https://gorm.io/contribute.html)
|
|
|
|
Thank you for contributing to the GORM framework!
|
|
|
|
[](https://github.com/go-gorm/gorm/graphs/contributors)
|
|
|
|
## License
|
|
|
|
© Jinzhu and GORM's committer, 2013 - 2023
|
|
|
|
Released under the [MIT License](https://github.com/go-gorm/gorm/blob/master/License)
|