The fantastic ORM library for Golang, aims to be developer friendly
Go to file
Jinzhu e73147fa8e Better support for scan into map, fix unfriendly data type for interface, close #3351 2020-09-01 17:45:14 +08:00
.github Add Golang v1.15 2020-08-24 20:24:25 +08:00
callbacks Clean up associations before Preload, close #3345 2020-09-01 13:48:37 +08:00
clause Fix named argument with multiple line SQL, fix #3336 2020-08-31 15:45:56 +08:00
logger refactor function convertParams's default case (#3208) 2020-07-28 17:25:03 +08:00
migrator Don't alter column with full column data type, close #3339 2020-08-31 16:27:27 +08:00
schema Fix multiple M2M relations on one table, close #3347 2020-09-01 11:30:16 +08:00
tests Better support for scan into map, fix unfriendly data type for interface, close #3351 2020-09-01 17:45:14 +08:00
utils Fix check valid db name, close #3315 2020-08-27 19:15:40 +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 GormValuer interface support 2020-08-27 15:03:57 +08:00
association.go Fix V2 Save compatibility, close #3332 2020-08-30 10:21:11 +08:00
callbacks.go callbacks support sort with wildcard 2020-08-03 21:48:36 +08:00
chainable_api.go fix order case (#3350) 2020-09-01 15:50:53 +08:00
errors.go Add error gorm.ErrInvalidData 2020-08-18 18:00:36 +08:00
finisher_api.go Fix V2 Save compatibility, close #3332 2020-08-30 10:21:11 +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 Squashed commit of the following: 2020-08-31 12:08:33 +08:00
interfaces.go Add GormValuer interface support 2020-08-27 15:03:57 +08:00
migrator.go Support smart migrate, close #3078 2020-08-23 18:16:12 +08:00
model.go Fix typo 2020-06-09 12:00:43 +08:00
prepare_stmt.go Fix named argument with multiple line SQL, fix #3336 2020-08-31 15:45:56 +08:00
scan.go Better support for scan into map, fix unfriendly data type for interface, close #3351 2020-09-01 17:45:14 +08:00
soft_delete.go Fix panic when delet without pointer, close #3308 2020-08-25 17:27:28 +08:00
statement.go ignore AS when alias table as it doesn't work on oracle db, close #3328 2020-08-29 22:09:07 +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, 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