MCPcopy
hub / github.com/ent/ent / edgeKeys

Function edgeKeys

dialect/sql/sqlgraph/graph.go:2022–2029  ·  view source on GitHub ↗
(m map[string][]*EdgeSpec)

Source from the content-addressed store, hash-verified

2020}
2021
2022func edgeKeys(m map[string][]*EdgeSpec) []string {
2023 keys := make([]string, 0, len(m))
2024 for k := range m {
2025 keys = append(keys, k)
2026 }
2027 sort.Strings(keys)
2028 return keys
2029}
2030
2031func insertKeys(m map[string]*sql.InsertBuilder) []string {
2032 keys := make([]string, 0, len(m))

Callers 2

clearM2MEdgesMethod · 0.85
addM2MEdgesMethod · 0.85

Calls 1

StringsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…