Jinzhu
8a0af58cc5
fix map fields with clickhouse driver
2024-06-20 20:19:31 +08:00
BugKillerPro
2fb4928aa8
refactor: Resolve implicit memory aliasing in for loop ( #6730 )
2023-12-15 16:31:23 +08:00
Truong Nguyen
ed474152b1
Fix: Composite primary key with auto-increment value returns 0 after insert ( #6127 )
...
* Fix #4930 workaround for databases that support auto-increment in composite primary key.
* Add test for composite key with auto-increment.
* schema.go: use field.AutoIncrement instead of field.TagSettings["AUTOINCREMENT"], add test to check autoincrement:false
create_test.go: remove unused code: drop table CompositeKeyProduct
---------
Co-authored-by: Jinzhu <wosmvp@gmail.com>
2023-03-10 16:50:03 +08:00
kinggo
b47cf57f5e
ci: add gofumpt check in reviewdog ( #4973 )
2022-01-06 15:02:53 +08:00
Jinzhu
1a526e6802
Fix NamingStrategy with embedded struct, close #3513
2020-09-24 11:32:38 +08:00
Jinzhu
f121622228
Don't add prefix for invalid embedded fields
2020-09-04 14:35:44 +08:00
Jinzhu
c19a3abefb
Fix self-referential belongs to, close #3319
2020-08-28 11:31:13 +08:00
Jinzhu
06de6e8834
Test same field name from embedded field, close #3291
2020-08-20 10:58:35 +08:00
Jinzhu
3313c11888
Fix embedded struct containing field named ID, close #3286
2020-08-19 19:15:27 +08:00
Jinzhu
dc48e04896
Fix nested embedded struct, close #3278
2020-08-18 11:21:40 +08:00
Jinzhu
6834c25cec
Fix stack overflow for embedded self-referred associations, close #3269
2020-08-17 12:02:46 +08:00
Jinzhu
a1e35bdc94
Support merge batch data some having primary values
2020-06-20 16:52:15 +08:00
Jinzhu
1490a062db
Refactor codebase and add benchmark test
2020-06-05 23:26:56 +08:00
Jinzhu
2218e32999
Allow customize table name with TableName
2020-06-02 15:48:19 +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
a46d48ccb3
Add tests for controlling field permission with tag
2020-04-08 08:32:28 +08:00
Jinzhu
f7f633590f
Fix tests with mysql, postgres
2020-03-12 13:05:22 +08:00
Jinzhu
04adbaf7f6
Fix parse stmt ReflectValue
2020-02-24 08:51:35 +08:00
Jinzhu
e2a360b9fa
Add Before/After callbacks
2020-02-23 21:22:35 +08:00
Jinzhu
fe24c3f105
Setup tests script
2020-02-23 09:38:51 +08:00
Jinzhu
18236fa3d7
Add more tests for setter, valuer
2020-02-16 00:37:59 +08:00
Jinzhu
faee069a9f
Test Field Valuer, Setter
2020-02-15 20:28:03 +08:00
Jinzhu
3cbd233758
Add more tests for parse schema relations
2020-02-02 00:03:56 +08:00
Jinzhu
a4a0895a85
Test parse schema relations
2020-02-01 22:26:17 +08:00
Jinzhu
14724ddeae
Add tests model definition and basic fields tests
2020-02-01 20:18:32 +08:00