2013-10-25 16:24:29 +08:00
|
|
|
# GORM
|
|
|
|
|
2014-01-03 14:54:47 +08:00
|
|
|
The fantastic ORM library for Golang, aims to be developer friendly.
|
2013-10-25 16:24:29 +08:00
|
|
|
|
2020-06-09 12:00:43 +08:00
|
|
|
[](https://goreportcard.com/report/github.com/go-gorm/gorm)
|
2020-06-22 23:14:17 +08:00
|
|
|
[](https://github.com/go-gorm/gorm/actions)
|
2019-05-05 16:23:52 +08:00
|
|
|
[](https://opensource.org/licenses/MIT)
|
2020-06-12 20:00:55 +08:00
|
|
|
[](https://pkg.go.dev/gorm.io/gorm?tab=doc)
|
2014-11-23 21:38:42 -07:00
|
|
|
|
2013-10-28 10:09:44 +08:00
|
|
|
## Overview
|
|
|
|
|
2020-06-22 20:22:15 +08:00
|
|
|
* Full-Featured ORM
|
|
|
|
* Associations (Has One, Has Many, Belongs To, Many To Many, Polymorphism, Single-table inheritance)
|
2018-02-17 00:33:52 +08:00
|
|
|
* Hooks (Before/After Create/Save/Update/Delete/Find)
|
2020-06-22 20:22:15 +08:00
|
|
|
* Eager loading with `Preload`, `Joins`
|
|
|
|
* Transactions, Nested Transactions, Save Point, RollbackTo to Saved Point
|
2021-01-27 18:21:58 -08:00
|
|
|
* Context, Prepared Statement Mode, DryRun Mode
|
2020-06-22 20:22:15 +08:00
|
|
|
* Batch Insert, FindInBatches, Find To Map
|
2020-08-27 15:03:57 +08:00
|
|
|
* SQL Builder, Upsert, Locking, Optimizer/Index/Comment Hints, NamedArg, Search/Update/Create with SQL Expr
|
2016-03-07 21:18:48 +08:00
|
|
|
* Composite Primary Key
|
|
|
|
* Auto Migrations
|
|
|
|
* Logger
|
2020-08-26 12:22:11 +08:00
|
|
|
* Extendable, flexible plugin API: Database Resolver (Multiple Databases, Read/Write Splitting) / Prometheus…
|
2013-11-07 12:12:25 +08:00
|
|
|
* Every feature comes with tests
|
|
|
|
* Developer Friendly
|
2013-10-28 10:09:44 +08:00
|
|
|
|
2016-02-29 22:06:15 +08:00
|
|
|
## Getting Started
|
2014-04-02 10:59:07 +02:00
|
|
|
|
2019-05-05 16:23:52 +08:00
|
|
|
* GORM Guides [https://gorm.io](https://gorm.io)
|
2022-10-14 20:30:28 +08:00
|
|
|
* Gen Guides [https://gorm.io/gen/index.html](https://gorm.io/gen/index.html)
|
2016-02-29 22:06:15 +08:00
|
|
|
|
2018-02-13 17:59:29 +08:00
|
|
|
## Contributing
|
2016-02-29 22:06:15 +08:00
|
|
|
|
2019-05-05 16:23:52 +08:00
|
|
|
[You can help to deliver a better GORM, check out things you can do](https://gorm.io/contribute.html)
|
2015-11-16 10:59:24 +08:00
|
|
|
|
2022-11-10 16:30:32 +08:00
|
|
|
## Contributors
|
|
|
|
|
2023-04-11 13:16:25 +08:00
|
|
|
[Thank you](https://github.com/go-gorm/gorm/graphs/contributors) for contributing to the GORM framework!
|
2022-11-10 16:30:32 +08:00
|
|
|
|
2013-11-12 07:13:58 +08:00
|
|
|
## License
|
|
|
|
|
2018-02-13 18:12:09 +08:00
|
|
|
© Jinzhu, 2013~time.Now
|
|
|
|
|
2023-11-07 11:20:06 +09:00
|
|
|
Released under the [MIT License](https://github.com/go-gorm/gorm/blob/master/LICENSE)
|