The fantastic ORM library for Golang, aims to be developer friendly
Go to file
Ben cc61202fe2
retrieving gorm object support pointer (#4006)
2021-01-27 11:50:15 +08:00
.github refactor: fix typo in tests.yml (#4005) 2021-01-27 11:18:39 +08:00
callbacks Refactor nested preloading associations, close #3970 2021-01-26 16:33:19 +08:00
clause Add OnConflict OnConstraint support, close #3882 2021-01-05 21:31:51 +08:00
logger Fix tests and logger 2021-01-10 15:27:53 +08:00
migrator Test migrate constraints, close #3986 2021-01-26 13:39:34 +08:00
schema Test migrate constraints, close #3986 2021-01-26 13:39:34 +08:00
tests retrieving gorm object support pointer 2021-01-27 11:48:47 +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 Support replace associations without the creation in association mode, close #3937 2021-01-26 14:34:21 +08:00
callbacks.go retrieving gorm object support pointer 2021-01-27 11:48:47 +08:00
chainable_api.go Fix SELECT with sql expression in some cases, close #3889 2020-12-28 10:40:30 +08:00
errors.go Add DryRunModeUnsupported Error for Row/Rows 2020-09-18 21:35:46 +08:00
finisher_api.go Fix Where with empty struct, close #3966 2021-01-19 16:37:49 +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 prepared statement in transaction mode can't be shared in normal operations, close #3927 2021-01-10 16:46:06 +08:00
interfaces.go Add GormValuer interface support 2020-08-27 15:03:57 +08:00
migrator.go Use NewDB to replace WithConditions for Session 2020-11-17 16:28:37 +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 populate the DeletedAt field when soft delete, fix #3855 2020-12-15 10:39:20 +08:00
statement.go Support group conditions with single OR condition 2021-01-20 18:24:05 +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