The fantastic ORM library for Golang, aims to be developer friendly
Go to file
Jason Lee 38e55f1117
Merge pull request #4773 from xwjdsh/master
fix: automigrate error caused by indexes while using dynamic table name
2021-10-19 10:11:11 +08:00
.github Update `tests.yml` (#4741) 2021-10-08 10:51:53 +08:00
callbacks Refactor Convert SQL null values to zero values for model fields which are not pointers #4710 2021-10-13 21:01:36 +08:00
clause fix: QuoteTo not fully support raw mode (#4735) 2021-09-29 14:02:35 +08:00
logger chore(logger): explicitly set config of Default Logger (#4605) 2021-08-11 11:49:46 +08:00
migrator Fix create with ignore migration (#4571) 2021-08-09 13:23:44 +08:00
schema fix: automigrate error caused by indexes while using dynamic table name 2021-10-19 09:59:57 +08:00
tests fix: automigrate error caused by indexes while using dynamic table name 2021-10-19 09:59:57 +08:00
utils fixed belongs_to & has_one reversed if field same (proper fix) (#4694) 2021-10-08 10:59:55 +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 Code optimize (#4415) 2021-06-10 10:21:28 +08:00
callbacks.go Fix table not supported error when using unexpected table name 2021-08-26 13:14:16 +08:00
chainable_api.go Fix Join condition with DB 2021-09-28 22:37:15 +08:00
errors.go Fix ErrInvalidTransaction error message (#4380) 2021-05-17 15:53:48 +08:00
finisher_api.go fix:remove the tableName judgment in pluck (#4731) 2021-09-27 22:11:29 +08:00
go.mod Add golang 1.16 2021-03-24 14:22:36 +08:00
go.sum Add golang 1.16 2021-03-24 14:22:36 +08:00
gorm.go feat: adjust SetupJoinTable func if..else code (#4680) 2021-10-08 11:05:50 +08:00
interfaces.go Add GetDBConnector interface 2021-03-19 15:55:38 +08:00
migrator.go Fix to call Scopes with using Migrator 2021-03-19 16:34:51 +08:00
model.go Fix typo 2020-06-09 12:00:43 +08:00
prepare_stmt.go feat: ajust PreparedStmtDB unlock location and BuildCondition if logic (#4681) 2021-10-08 11:16:58 +08:00
scan.go Fix scan with interface 2021-09-17 18:35:14 +08:00
soft_delete.go Fix soft delete with Update 2021-06-01 18:34:38 +08:00
statement.go fix: automigrate error caused by indexes while using dynamic table name 2021-10-19 09:59:57 +08:00
statement_test.go Support specify select/omit columns with table 2021-10-08 17:51:27 +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