* Implement Generics API
* Add more generics tests
* Add more tests and Take method
* use delayed‑ops pipeline for generics API
* fix generics tests for mysql
* Support SubQuery for Generics
* Add clause.JoinTable helper method
* Fix golangci-lint error
* Complete the design and implementation of generic version Join
* improve generics version Joins support
* allow configuring select/omit columns for joins via subqueries
* finish generic version Preload
* handle error of generics Joins/Preload
* fix tests
* Add LimitPerRecord for generic version Preload
* fix tests for mysql 5.7
* test for nested generic version Join/Preload
* Add WithResult support for generics API
* test reuse generics db conditions
* fix data race
* remove ExampleLRU test
* Add default transaction timeout support
* fix test
Add comments to functions in chainable_api. Depending on the method,
these comments add some additional context or details that are relevant
when reading the function, link to the actual docs at gorm.io/docs, or
provide examples of use. These comments should make GORM much more
pleasant to use with an IDE that provides hoverable comments, and are
minimal examples.
Also add in-code documentation to FirstOrInit and FirstOrCreate.
Almost all examples are directly pulled from the docs, with short
comments explaining the code. Most examples omit the `db.Model(&User{})`
for brevity, and would not actually work.
Co-authored-by: Nate Armstrong <nate.armstrong@eluv.io>
commit e8307b5ef5273519a32cd8e4fd29250d1c277f6e
Author: Jinzhu <wosmvp@gmail.com>
Date: Fri Mar 18 13:37:22 2022 +0800
Refactor #5130
commit 40cbba49f374c9bae54f80daee16697ae45e905b
Author: chenrui <chenrui@jingdaka.com>
Date: Sat Mar 5 17:36:56 2022 +0800
test: fix test fail
commit 66d3f078291102a30532b6a9d97c757228a9b543
Author: chenrui <chenrui@jingdaka.com>
Date: Sat Mar 5 17:29:09 2022 +0800
test: drop table and auto migrate
commit 7cbf019a930019476a97ac7ac0f5fc186e8d5b42
Author: chenrui <chenrui@jingdaka.com>
Date: Sat Mar 5 15:27:45 2022 +0800
fix: preload panic when model and dest different