MCPcopy Index your code
hub / github.com/ent/ent / insertKeys

Function insertKeys

dialect/sql/sqlgraph/graph.go:2031–2038  ·  view source on GitHub ↗
(m map[string]*sql.InsertBuilder)

Source from the content-addressed store, hash-verified

2029}
2030
2031func insertKeys(m map[string]*sql.InsertBuilder) []string {
2032 keys := make([]string, 0, len(m))
2033 for k := range m {
2034 keys = append(keys, k)
2035 }
2036 sort.Strings(keys)
2037 return keys
2038}
2039
2040func keys(m map[string]struct{}) []string {
2041 keys := make([]string, 0, len(m))

Callers 1

batchAddM2MMethod · 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…