MCPcopy
hub / github.com/ent/ent / keys

Function keys

dialect/sql/sqlgraph/graph.go:2040–2047  ·  view source on GitHub ↗
(m map[string]struct{})

Source from the content-addressed store, hash-verified

2038}
2039
2040func keys(m map[string]struct{}) []string {
2041 keys := make([]string, 0, len(m))
2042 for k := range m {
2043 keys = append(keys, k)
2044 }
2045 sort.Strings(keys)
2046 return keys
2047}
2048
2049func matchID(column string, pk []driver.Value) *sql.Predicate {
2050 if len(pk) > 1 {

Callers 1

nodesMethod · 0.70

Calls 1

StringsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…