The fantastic ORM library for Golang, aims to be developer friendly
Go to file
Jinzhu dea93edb6a Copy TableExpr when clone statement 2020-08-13 16:28:21 +08:00
.github Fix labeler 2020-08-05 14:22:35 +08:00
callbacks Test update from sub query 2020-08-13 16:05:06 +08:00
clause Fix Select with specific symbol, close #3157 2020-07-17 11:24:24 +08:00
logger refactor function convertParams's default case (#3208) 2020-07-28 17:25:03 +08:00
migrator Fix failed to guess relations for embedded types, close #3224 2020-08-04 12:25:34 +08:00
schema Fix driver.Valuer interface returns nil, close #3248 2020-08-13 12:05:55 +08:00
tests Copy TableExpr when clone statement 2020-08-13 16:28:21 +08:00
utils Fix Select with specific symbol, close #3158 2020-07-17 11:06:20 +08:00
.gitignore Add clause, DB API, model definition 2020-01-29 19:22:44 +08:00
License Add MIT License file 2015-01-05 08:59:18 +08:00
README.md Add NamedArg support 2020-07-10 12:28:24 +08:00
association.go define err with the same code style (#3199) 2020-07-26 10:03:58 +08:00
callbacks.go callbacks support sort with wildcard 2020-08-03 21:48:36 +08:00
chainable_api.go Allow advanced table with args 2020-07-19 21:30:24 +08:00
errors.go define err with the same code style (#3199) 2020-07-26 10:03:58 +08:00
finisher_api.go Fix Count with Select when Model not specfied, close #3220 2020-08-03 10:30:25 +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 callbacks support sort with wildcard 2020-08-03 21:48:36 +08:00
interfaces.go Add register plugin API 2020-06-23 09:38:51 +08:00
migrator.go Test migrate with comment and check created constraints 2020-06-21 13:59:43 +08:00
model.go Fix typo 2020-06-09 12:00:43 +08:00
prepare_stmt.go callbacks support sort with wildcard 2020-08-03 21:48:36 +08:00
scan.go Query with smaller struct 2020-07-01 08:56:21 +08:00
soft_delete.go Fix soft delete panic when using unaddressable value 2020-08-06 17:48:46 +08:00
statement.go Copy TableExpr when clone statement 2020-08-13 16:28:21 +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 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, write Plugins based on GORM callbacks
  • 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