mirror of https://github.com/go-gorm/gorm.git
61d3a4d6ea
* Fix schema initialization paths The initialized channel was only closed if the schema's cacheStore did not contain the embeddedCacheKey and there were no errors parsing relations. If the key existed or an error occurred, it would not be closed. This could leave other goroutines waiting for synchronization that will never occur. Additionally, the other code paths that wait for initialization to complete did not return the possible error. * Unnest common schema initialization This makes the common code path less deeply nested and the flow control easier to follow. |
||
---|---|---|
.. | ||
callbacks_test.go | ||
check.go | ||
check_test.go | ||
field.go | ||
field_test.go | ||
index.go | ||
index_test.go | ||
interfaces.go | ||
model_test.go | ||
naming.go | ||
naming_test.go | ||
relationship.go | ||
relationship_test.go | ||
schema.go | ||
schema_helper_test.go | ||
schema_test.go | ||
utils.go | ||
utils_test.go |