21
GORM Guides | GORM - The fantastic ORM library for Golang, aims to be developer...
source link: http://v2.gorm.io/docs/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
GORM Guides
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 Statment Mode, DryRun Mode
- Batch Insert, FindInBatches, Find To Map
- SQL Builder, Upsert, Locking, Optimizer/Index/Comment Hints, NamedArg
- Composite Primary Key
- Auto Migrations
- Logger
- Extendable, flexible plugin API: Database Resolver (Read/Write Splitting) / Prometheus…
- Every feature comes with tests
- Developer Friendly
Install
go get -u gorm.io/gorm |
Quick Start
package main |
Last updated: 2020-08-21Next
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK