gorm/schema
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
..
callbacks_test.go Rename package name 2020-06-02 09:18:01 +08:00
check.go Optimize parse constraint (#4153) 2021-03-08 10:21:33 +08:00
check_test.go Rename package name 2020-06-02 09:18:01 +08:00
field.go Code optimize (#4415) 2021-06-10 10:21:28 +08:00
field_test.go Fix tests 2021-05-06 13:06:31 +08:00
index.go Add option tag support for index 2020-10-21 20:18:21 +08:00
index_test.go Add option tag support for index 2020-10-21 20:18:21 +08:00
interfaces.go Add GormValuer interface support 2020-08-27 15:03:57 +08:00
model_test.go Fix nested embedded struct, close #3278 2020-08-18 11:21:40 +08:00
naming.go Code optimize (#4415) 2021-06-10 10:21:28 +08:00
naming_test.go Fixed naming longer than 64 characters (#4310) 2021-04-22 13:11:19 +08:00
relationship.go Code optimize (#4415) 2021-06-10 10:21:28 +08:00
relationship_test.go fixed has_many stopped working if field names are identical (#4387) 2021-05-19 16:05:29 +08:00
schema.go Code optimize (#4415) 2021-06-10 10:21:28 +08:00
schema_helper_test.go Fix some typos (#4294) 2021-04-19 21:03:39 +08:00
schema_test.go Fix NamingStrategy with embedded struct, close #3513 2020-09-24 11:32:38 +08:00
utils.go Code optimize (#4415) 2021-06-10 10:21:28 +08:00
utils_test.go Remove autoincrement tag for join table, close #3217 2020-07-31 18:19:25 +08:00