The fantastic ORM library for Golang, aims to be developer friendly
Go to file
Jinzhu 9dbef26feb Fix feature request label 2020-10-19 11:49:03 +08:00
.github Fix feature request label 2020-10-19 11:49:03 +08:00
callbacks Fix affected rows for Scan, change affected rows count for row/rows to '-', close #3532 2020-09-27 12:25:38 +08:00
clause Fix NamedArguments with nested struct, close #3596 2020-10-13 15:32:29 +08:00
logger Fix log Stringer 2020-10-19 11:04:18 +08:00
migrator AutoMigrate should auto create indexes, close #3486 2020-09-18 21:50:11 +08:00
schema Compatible with tag notNull 2020-10-09 17:42:28 +08:00
tests Compatible with tag notNull 2020-10-09 17:42:28 +08:00
utils Support delete associations with Select when deleting 2020-09-10 21:46:18 +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 Add detailed error information when missing table name 2020-09-29 15:43:31 +08:00
chainable_api.go Fix Select with AS, close #3581, #3567 2020-10-09 11:52:12 +08:00
errors.go Add DryRunModeUnsupported Error for Row/Rows 2020-09-18 21:35:46 +08:00
finisher_api.go Fix affected rows for Scan, change affected rows count for row/rows to '-', close #3532 2020-09-27 12:25:38 +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 Support FullSaveAssociations Mode, close #3487, #3506 2020-09-24 19:29:15 +08:00
interfaces.go Add GormValuer interface support 2020-08-27 15:03:57 +08:00
migrator.go Fix Scan struct with primary key, close #3357 2020-09-02 16:14:26 +08:00
model.go Fix typo 2020-06-09 12:00:43 +08:00
prepare_stmt.go Fix transaction on closed conn when using prepared statement, close #3380 2020-09-03 19:16:55 +08:00
scan.go Fix affected rows for Scan, change affected rows count for row/rows to '-', close #3532 2020-09-27 12:25:38 +08:00
soft_delete.go Fix DeletedAt marshalling, close #3598 2020-10-13 14:12:03 +08:00
statement.go Don't build IN condition if value implemented Valuer interface, #3517 2020-09-24 15:00:13 +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