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

Function NestedRelationName

utils/utils.go:177–179  ·  view source on GitHub ↗

NestedRelationName nested relationships like `Manager__Company`

(prefix, name string)

Source from the content-addressed store, hash-verified

175
176// NestedRelationName nested relationships like `Manager__Company`
177func NestedRelationName(prefix, name string) string {
178 return prefix + nestedRelationSplit + name
179}
180
181// SplitNestedRelationName Split nested relationships to `[]string{"Manager","Company"}`
182func SplitNestedRelationName(name string) []string {

Callers 1

BuildQuerySQLFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected