Qt
7837fb6fa0
fix typo in TxCommitter interface comment & improve CheckTruth, chek val empty first ( #5094 )
...
* fix typo in TxCommitter interface comment
* improve CheckTruth, chek val empty first
2022-02-20 21:19:15 +08:00
Jinzhu
39d84cba5f
Add serializer support ( #5078 )
...
* Update context
* Update GormFieldValuer
* Add Serializer
* Add Serializer Interface
* Refactor gorm field
* Refactor setter, valuer
* Add sync.Pool
* Fix test
* Add pool manager
* Fix pool manager
* Add poolInitializer
* Add Serializer Scan support
* Add Serializer Value method
* Add serializer test
* Finish Serializer
* Fix JSONSerializer for postgres
* Fix JSONSerializer for sqlserver
* Test serializer tag
* Add unixtime serializer
* Update go.mod
2022-02-19 17:02:53 +08:00
kinggo
b47cf57f5e
ci: add gofumpt check in reviewdog ( #4973 )
2022-01-06 15:02:53 +08:00
Jinzhu
8627634959
Fix create associations with zero primary key, close #4890
2021-12-02 10:20:16 +08:00
Jinzhu
27e2753c9d
Fix create duplicated value when updating nested has many relationship, close #4796
2021-11-29 18:43:39 +08:00
Jinzhu
e1b4c066a8
Fix FullSaveAssociations, close #4874
2021-11-29 11:02:44 +08:00
Jinzhu
835d7bde59
Add returning support to delete
2021-10-28 07:56:55 +08:00
Paras Waykole
5d91ddac8c
fixed belongs_to & has_one reversed if field same (proper fix) ( #4694 )
...
* fixed belongs_to & has_one reversed if field same
* hasmany same foreign key bug fixed and test added
* belongsToSameForeignKey fixed and reverted old fix
2021-10-08 10:59:55 +08:00
Jinzhu
d41fb3acdc
Refactor dummy driver QuoteTo method
2021-09-11 16:22:35 +08:00
Adrien Carreira
52cc438d07
JoinsOn unit test + use all primary keys
2021-09-06 20:13:20 +08:00
Jinzhu
3226937f68
Fix calc gormSourceDir, close #4456
2021-06-13 10:32:03 +08:00
heige
50e85e14d4
Code optimize ( #4415 )
...
* optimize gormSourceDir replace
* fmt.Errorf adjust and Optimize for-break
* strings trim
* feat: avoid using the same name field and if..else optimization adjustment
* optimization callbacks/create.go Create func if...else logic
* fix: callbacks/create.go Create func
* fix FileWithLineNum func and add gormSourceDir unit test
* remove debug print and utils_filenum_test.go
2021-06-10 10:21:28 +08:00
Paras Waykole
8f7f3ad315
fixed belongs_to & has_one reversed if field same ( #4343 )
2021-05-05 07:57:54 +08:00
Jinzhu
70a7bd52ca
Support delete associations with Select when deleting
2020-09-10 21:46:18 +08:00
aimuz
9a101c8a08
fmt.Sprint() to strconv.Format ( #3354 )
2020-09-01 21:03:37 +08:00
Jinzhu
d50dbb0896
Fix check valid db name, close #3315
2020-08-27 19:15:40 +08:00
Jinzhu
dc48e04896
Fix nested embedded struct, close #3278
2020-08-18 11:21:40 +08:00
Jinzhu
58e3241544
Fix Select with specific symbol, close #3158
2020-07-17 11:06:20 +08:00
Jinzhu
4456df7a5d
Lint with golangci-lint
2020-07-16 11:27:12 +08:00
Jinzhu
0790ff6937
Update tests helper to check time
2020-07-09 09:42:27 +08:00
Jinzhu
619cd332ec
Add index priority supports
2020-07-08 17:59:40 +08:00
Jinzhu
b5725940e9
Test Select with Update Struct
2020-07-06 11:20:43 +08:00
Jinzhu
f5566288de
Add SetColumn, Changed method
2020-06-30 16:53:54 +08:00
Jinzhu
a1e35bdc94
Support merge batch data some having primary values
2020-06-20 16:52:15 +08:00
Jinzhu
4f19e2a7b3
Test ForeignKeyConstraints
2020-06-20 01:20:18 +08:00
Jinzhu
31a0553b82
Fix FileWithLineNum on windows
2020-06-07 18:37:05 +08:00
Jinzhu
9934207c42
Fix logger panic on windows
2020-06-03 14:39:36 +08:00
Jinzhu
8bb05a5a69
Refactor tests files
2020-06-02 10:50:38 +08:00
Jinzhu
590f622674
Refactor create tests
2020-05-23 22:32:16 +08:00
Jinzhu
5ec4fee797
Don't preload if foreign keys zero
2020-05-23 21:09:03 +08:00
Jinzhu
42aae57240
Test Preload for BelongsTo/HasOne/HasMany
2020-05-14 14:41:33 +08:00
Jinzhu
b549f9bb9a
Implement preload support
2020-05-14 12:19:12 +08:00
Jinzhu
56ca9a87e0
Add permission check when create associations
2020-04-16 10:29:18 +08:00
Jinzhu
511bd66490
Fix print code lines
2020-04-03 07:15:30 +08:00
Jinzhu
a145d7e019
Refactor structure
2020-03-09 14:25:50 +08:00
Jinzhu
2da0ad5bed
Add more tests for Update
2020-03-08 13:24:08 +08:00
Jinzhu
b0e1bccf4a
Support scan into map, slice, struct
2020-03-04 11:33:50 +08:00
Jinzhu
27cb613871
Refactor logger
2020-02-23 15:07:47 +08:00
Jinzhu
e509b3100d
Implement callbacks
2020-01-31 06:35:25 +08:00