The fantastic ORM library for Golang, aims to be developer friendly
Go to file
Jinzhu 912360097a Fix Scopes with Migrator, close #4145 2021-03-11 10:36:14 +08:00
.github refactor: fix typo in tests.yml (#4005) 2021-01-27 11:18:39 +08:00
callbacks Revert "Revert "Don't override the from clauses, close #4129" close #4139" 2021-03-05 22:19:34 +08:00
clause support named params in Select API (#4142) 2021-03-07 10:59:00 +08:00
logger Switch driver.Valuer, fmt.Stringer order when format SQL 2021-02-07 11:18:42 +08:00
migrator Fix get current table 2021-02-26 17:30:00 +08:00
schema chore: improve code quality (#4123) 2021-03-08 10:46:43 +08:00
tests Fix Scopes with Migrator, close #4145 2021-03-11 10:36:14 +08:00
utils Support delete associations with Select when deleting 2020-09-10 21:46:18 +08:00
.gitignore Add field tag to ignore migration (#4028) 2021-02-09 16:03:02 +08:00
License Add MIT License file 2015-01-05 08:59:18 +08:00
README.md Fix typo in README (#4012) 2021-01-28 10:21:58 +08:00
association.go invalid db error and value and invalid value length error (#4151) 2021-03-07 10:56:32 +08:00
callbacks.go Don't panic when using nil pointer, close #4168 2021-03-10 19:32:56 +08:00
chainable_api.go support named params in Select API (#4142) 2021-03-07 10:59:00 +08:00
errors.go invalid db error and value and invalid value length error (#4151) 2021-03-07 10:56:32 +08:00
finisher_api.go optimize value of reflection length (#4152) 2021-03-08 10:20:04 +08:00
go.mod Refactor tests files 2020-06-02 10:50:38 +08:00
go.sum Add go.sum 2020-06-06 14:28:59 +08:00
gorm.go Fix Scopes with Migrator, close #4145 2021-03-11 10:36:14 +08:00
interfaces.go Add GormValuer interface support 2020-08-27 15:03:57 +08:00
migrator.go Fix Scopes with Migrator, close #4145 2021-03-11 10:36:14 +08:00
model.go Fix typo 2020-06-09 12:00:43 +08:00
prepare_stmt.go Fix prepared statement in transaction mode can't be shared in normal operations, close #3927 2021-01-10 16:46:06 +08:00
scan.go retrieving gorm object support pointer (#4006) 2021-01-27 11:50:15 +08:00
soft_delete.go chore: improve code quality (#4123) 2021-03-08 10:46:43 +08:00
statement.go Fix double pointer for where conditions, close #4159 2021-03-10 19:46:59 +08:00
statement_test.go Spelling fix for "condtion" -> "condition" (#3042) 2020-06-08 11:38:51 +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