Jinzhu
c44405a25b
Implement Generics API ( #7424 )
...
* 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
2025-05-25 15:40:40 +08:00
Jinzhu
79bf7f92ed
fix CI for sqlserver
2024-06-17 11:58:13 +08:00
Emilien
05167fd591
fix: use reflect.Append when preloading nested associations ( #7014 )
...
Co-authored-by: Emilien Kofman <emilien.kofman@miimosa.com>
2024-06-12 18:52:33 +08:00
贾一饼
9c4070ed19
fix: AfterQuery should clear FROM Clause's Joins rather than the Statement ( #7027 )
2024-06-12 17:51:44 +08:00
Cr
407bedae0a
fix: nested joins alias ( #6265 )
2023-04-26 22:19:32 +08:00
Cr
8bf1f269cf
feat: support nested join ( #6067 )
...
* feat: support nested join
* fix: empty rel value
2023-03-10 17:21:56 +08:00
Cr
1935eb0adb
feat: support inner join ( #5583 )
...
* feat: support inner join
* test: mixed inner join and left join
* chore: code comment
* Update statement.go
Co-authored-by: Jinzhu <wosmvp@gmail.com>
2022-12-24 12:27:38 +08:00
Cr
b2f42528a4
fix(Joins): args with select and omit ( #5790 )
...
* fix(Joins): args with select and omit
* chore: gofumpt style
2022-11-02 10:28:00 +08:00
Stephano George
a3cc6c6088
Fix: wrong value when Find with Join with same column name, close #5723 , #5711
2022-09-30 17:18:42 +08:00
Filippo Del Moro
6aa6d37fc4
Fix scanIntoStruct ( #5241 )
...
* Reproduces error case
* Fix scanIntoStruct
Co-authored-by: Filippo Del Moro <filippo.delmoro@facile.it>
2022-04-13 15:47:04 +08:00
ag9920
3c00980e01
fix: serializer use default valueOf in assignInterfacesToValue, close #5168
...
commit 58e1b2bffbc216f2862d040fb545a8a486e473b6
Author: Jinzhu <wosmvp@gmail.com>
Date: Fri Mar 18 17:06:43 2022 +0800
Refactor #5168
commit fb9233011d209174e8223e970f0f732412852908
Author: ag9920 <alexgong7@outlook.com>
Date: Thu Mar 17 21:23:28 2022 +0800
fix: serializer use default valueOf in assignInterfacesToValue
2022-03-18 17:12:17 +08:00
chenrui
c2e36ebe62
fix: soft delete for join, close #5132
...
commit a83023bdfc0dc6eaccc6704b64ff6436c2fe7725
Author: Jinzhu <wosmvp@gmail.com>
Date: Fri Mar 18 01:05:25 2022 +0800
Refactor #5132
commit 8559f51102c01be6c19913c0bc3a5771721ff1f5
Author: chenrui <chenrui@jingdaka.com>
Date: Mon Mar 7 20:33:12 2022 +0800
fix: should add deleted_at exprs for every joins
commit 2b7a1bdcf3eff9d23253173d21e73c1f056f9be4
Author: chenrui <chenrui@jingdaka.com>
Date: Mon Mar 7 14:46:48 2022 +0800
test: move debug flag
commit ce13a2a7bc50d2c23678806acf65dbd589827c77
Author: chenrui <chenrui@jingdaka.com>
Date: Mon Mar 7 14:39:56 2022 +0800
fix: soft delete for join.on
2022-03-18 01:09:20 +08:00
li-jin-gou
c0bea447b9
fix: omit not work when use join ( #5034 )
2022-01-28 22:16:42 +08:00
kinggo
b47cf57f5e
ci: add gofumpt check in reviewdog ( #4973 )
2022-01-06 15:02:53 +08:00
kinggo
418c60c83c
fixed: clauseSelect.Columns missed when use Join And execute multiple query. ( #4757 )
2021-10-09 16:55:45 +08:00
Jinzhu
002bf78ea7
Fix Join condition with DB, close #4719
2021-09-28 21:43:31 +08:00
Jinzhu
a16db07945
Refactor Join ON
2021-09-07 21:21:44 +08:00
Adrien Carreira
d047f854e6
PR Comments
2021-09-06 20:13:20 +08:00
Adrien Carreira
52cc438d07
JoinsOn unit test + use all primary keys
2021-09-06 20:13:20 +08:00
Jinzhu
e1952924e2
Support named Joins, close #3833
2020-12-07 10:31:06 +08:00
Jinzhu
3a97639880
Fix unordered joins, close #3267
2020-08-23 10:45:10 +08:00
Jinzhu
9a4941ba70
Test Order/GroupBy
2020-07-06 09:47:14 +08:00
Jinzhu
8bb05a5a69
Refactor tests files
2020-06-02 10:50:38 +08:00
Jinzhu
e986371a42
Rename package name
2020-06-02 09:18:01 +08:00
Jinzhu
e26abb84b3
Test block global update/delete
2020-05-31 20:42:07 +08:00
Jinzhu
5b1d3e4a77
Test Joins
2020-05-31 20:21:52 +08:00
Jinzhu
f0a442adff
Refactor tests
2020-05-23 23:50:48 +08:00