You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
2.2 KiB
44 lines
2.2 KiB
3 years ago
|
# GORM
|
||
|
|
||
|
The fantastic ORM library for Golang, aims to be developer friendly.
|
||
|
|
||
|
[![go report card](https://goreportcard.com/badge/github.com/go-gorm/gorm "go report card")](https://goreportcard.com/report/github.com/go-gorm/gorm)
|
||
|
[![test status](https://github.com/go-gorm/gorm/workflows/tests/badge.svg?branch=master "test status")](https://github.com/go-gorm/gorm/actions)
|
||
|
[![Join the chat at https://gitter.im/jinzhu/gorm](https://img.shields.io/gitter/room/jinzhu/gorm.svg)](https://gitter.im/jinzhu/gorm?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||
|
[![Open Collective Backer](https://opencollective.com/gorm/tiers/backer/badge.svg?label=backer&color=brightgreen "Open Collective Backer")](https://opencollective.com/gorm)
|
||
|
[![Open Collective Sponsor](https://opencollective.com/gorm/tiers/sponsor/badge.svg?label=sponsor&color=brightgreen "Open Collective Sponsor")](https://opencollective.com/gorm)
|
||
|
[![MIT license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)
|
||
|
[![Go.Dev reference](https://img.shields.io/badge/go.dev-reference-blue?logo=go&logoColor=white)](https://pkg.go.dev/gorm.io/gorm?tab=doc)
|
||
|
|
||
|
## 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](https://gorm.io)
|
||
|
* GORM Gen [gorm/gen](https://github.com/go-gorm/gen#gormgen)
|
||
|
|
||
|
## Contributing
|
||
|
|
||
|
[You can help to deliver a better GORM, check out things you can do](https://gorm.io/contribute.html)
|
||
|
|
||
|
## License
|
||
|
|
||
|
© Jinzhu, 2013~time.Now
|
||
|
|
||
|
Released under the [MIT License](https://github.com/go-gorm/gorm/blob/master/License)
|