MCPcopy
hub / github.com/go-gorm/gorm / SplitNestedRelationName

Function SplitNestedRelationName

utils/utils.go:182–184  ·  view source on GitHub ↗

SplitNestedRelationName Split nested relationships to `[]string{"Manager","Company"}`

(name string)

Source from the content-addressed store, hash-verified

180
181// SplitNestedRelationName Split nested relationships to `[]string{"Manager","Company"}`
182func SplitNestedRelationName(name string) []string {
183 return strings.Split(name, nestedRelationSplit)
184}
185
186// JoinNestedRelationNames nested relationships like `Manager__Company`
187func JoinNestedRelationNames(relationNames []string) string {

Callers 1

ScanFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected