The fantastic ORM library for Golang, aims to be developer friendly
Go to file
Cr f223279384
chore: fix gorm tag (#5577)
2022-08-10 11:03:42 +08:00
.github chore(deps): bump actions/setup-go from 2 to 3 (#5243) 2022-04-13 15:53:12 +08:00
callbacks Adjust ToStringKey use unpack params, fix pass []any as any in variadic function (#5500) 2022-07-14 20:05:22 +08:00
clause Fixed #5355 - Named variables don't work when followed by Windows CRLF line endings (#5356) 2022-05-22 15:16:01 +08:00
logger fix bad logging performance of bulk create (#5520) (#5521) 2022-07-18 20:47:00 +08:00
migrator fix(MigrateColumn):declared different type without length (#5465) 2022-06-29 10:07:42 +08:00
schema fix: empty serilizer err #5524 (#5525) 2022-07-27 13:59:47 +08:00
tests fix: empty serilizer err #5524 (#5525) 2022-07-27 13:59:47 +08:00
utils chore: fix gorm tag (#5577) 2022-08-10 11:03:42 +08:00
.gitignore Adjust ToStringKey use unpack params, fix pass []any as any in variadic function (#5500) 2022-07-14 20:05:22 +08:00
.golangci.yml Use Golangci configuration file (#4896) 2021-12-10 17:44:11 +08:00
License Add MIT License file 2015-01-05 08:59:18 +08:00
README.md Update README.md 2022-03-24 16:30:14 +08:00
association.go fix empty QueryClauses in association (#5502) (#5503) 2022-07-15 11:15:18 +08:00
callbacks.go Revert "use callback to handle transaction" 2022-07-07 15:06:48 +08:00
chainable_api.go Fix update select clause with before/after expressions, close #5164 2022-03-18 20:57:33 +08:00
errors.go preoload not allowd before count (#5023) 2022-01-30 18:17:06 +08:00
finisher_api.go Create a new db in FindInBatches 2022-07-18 18:07:05 +08:00
go.mod Upgrade go.mod 2021-12-10 17:50:19 +08:00
go.sum Upgrade go.mod 2021-12-10 17:50:19 +08:00
gorm.go Create a new db in FindInBatches 2022-07-18 18:07:05 +08:00
interfaces.go Scan with Rows interface 2022-03-29 18:14:37 +08:00
migrator.go feat: add method GetIndexes (#5436) 2022-06-17 11:00:57 +08:00
model.go Fix typo 2020-06-09 12:00:43 +08:00
prepare_stmt.go Refactor Tx interface 2022-03-01 16:59:50 +08:00
scan.go fix: reset null value in slice (#5417) 2022-06-14 13:48:50 +08:00
soft_delete.go Refactor check missing where condition 2022-02-25 10:48:23 +08:00
statement.go Fix select with association column 2022-07-13 18:26:35 +08:00
statement_test.go Fix select with association column 2022-07-13 18:02:11 +08:00

README.md

GORM

The fantastic ORM library for Golang, aims to be developer friendly.

go report card test status Join the chat at https://gitter.im/jinzhu/gorm Open Collective Backer Open Collective Sponsor MIT license Go.Dev reference

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

Contributing

You can help to deliver a better GORM, check out things you can do

License

© Jinzhu, 2013~time.Now

Released under the MIT License