Jinzhu
6a18a15c93
Refactor check missing where condition
2022-02-25 10:48:23 +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
e5bdd610c3
fix: save not use soft_delete ( #4897 )
...
* fix: Save not use soft_delete
* fix: save not use soft_delete
* fix: save not use soft_delete
* fix: save not use soft_delete
Co-authored-by: kinggo <>
2021-12-08 13:58:06 +08:00
Jinzhu
300a23fc31
Check rows.Close error, close #4891
2021-12-02 10:39:24 +08:00
heige
9d5f315b6d
feat: go code style adjust and optimize code for callbacks package ( #4861 )
...
* feat: go code style adjust and optimize code for callbacks package
* Update scan.go
2021-11-29 09:33:20 +08:00
heige
4c8810a848
Refactor if logic ( #4683 )
...
* adjust code for preload
* adjust code for Create
2021-11-04 13:45:44 +08:00
Jinzhu
835d7bde59
Add returning support to delete
2021-10-28 07:56:55 +08:00
Jinzhu
6951be0284
Allow customize clauses
2021-04-28 17:19:30 +08:00
Sivchari
adf85d5b82
change the method of initializing slice ( #4097 )
...
* change the method of initializing slice and fixed the length to be specified as 0
* keep the association.go code in the var group
* keep the association.go code in the var group
* change to initializing in var group
2021-03-04 19:44:15 +08:00
Jinzhu
883c32e59a
Support Unscoped when delete with selected associations, close #4062
2021-02-07 14:36:27 +08:00
Jinzhu
9df9f7688b
Change UpdatingColumn to SkipHooks
2020-11-17 17:49:43 +08:00
Jinzhu
26504f5cae
Use NewDB to replace WithConditions for Session
2020-11-17 16:28:37 +08:00
Jinzhu
fcf2ab6c0e
Add deleted_at check when soft deleting, fix #3720
2020-11-05 11:20:08 +08:00
Jinzhu
a932175ccf
Refactor cascade delete associations
2020-09-15 14:28:26 +08:00
Jinzhu
06d534d6ea
Cascade delete associations, close #3473
2020-09-15 12:41:45 +08:00
Jinzhu
70a7bd52ca
Support delete associations with Select when deleting
2020-09-10 21:46:18 +08:00
Jinzhu
ce8853e7a6
Add GormValuer interface support
2020-08-27 15:03:57 +08:00
Jinzhu
3dfa8a66f1
Fix panic when delet without pointer, close #3308
2020-08-25 17:27:28 +08:00
Jinzhu
ebdb4edda8
Add AllowGlobalUpdate mode
2020-08-23 20:08:23 +08:00
Jinzhu
69d8111893
Fix panic when using invalid data, close #3193
2020-07-24 08:32:50 +08:00
Jinzhu
33c48611b6
Fix customize table with Delete, close #3129
2020-07-10 13:08:29 +08:00
Jinzhu
2ae0653af2
Fix ambiguous column when using same column name in join table, close #3120
2020-07-09 09:03:48 +08:00
Jinzhu
9f19378304
Grow SQL capacity to reduce allocation
2020-06-08 20:23:47 +08:00
Jinzhu
1490a062db
Refactor codebase and add benchmark test
2020-06-05 23:26:56 +08:00
Jinzhu
163200d05f
Test Hooks
2020-06-05 20:24:15 +08:00
Jinzhu
e986371a42
Rename package name
2020-06-02 09:18:01 +08:00
Jinzhu
4e147e1256
Test SubQuery
2020-06-01 21:26:23 +08:00
Jinzhu
befef0c9a9
Improve Hooks
2020-06-01 00:12:20 +08:00
Jinzhu
c422d75f4b
Add Scopes tests
2020-05-30 19:43:29 +08:00
Jinzhu
55074213bc
Add SoftDelete support
2020-05-29 07:35:45 +08:00
Jinzhu
dea48a8c59
Test Many2Many Association
2020-05-26 00:16:44 +08:00
Jinzhu
a145d7e019
Refactor structure
2020-03-09 14:25:50 +08:00
Jinzhu
ce0e6f9f33
Add Delete test
2020-03-08 14:51:52 +08:00
Jinzhu
e2a360b9fa
Add Before/After callbacks
2020-02-23 21:22:35 +08:00
Jinzhu
728c0d4470
Add callbacks
2020-02-02 20:05:10 +08:00