kvii
871f1de6b9
fix logger path bug ( #5836 )
2022-11-05 11:52:08 +08:00
Jinzhu
aa4312ee74
Don't display any GORM related package path as source
2022-10-17 17:01:42 +08:00
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
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
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
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
f5566288de
Add SetColumn, Changed method
2020-06-30 16:53:54 +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
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