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

Method GroupTable

dialect/sql/sqlgraph/graph.go:1623–1629  ·  view source on GitHub ↗

GroupTable groups edges by their table name.

()

Source from the content-addressed store, hash-verified

1621
1622// GroupTable groups edges by their table name.
1623func (es EdgeSpecs) GroupTable() map[string][]*EdgeSpec {
1624 edges := make(map[string][]*EdgeSpec)
1625 for _, edge := range es {
1626 edges[edge.Table] = append(edges[edge.Table], edge)
1627 }
1628 return edges
1629}
1630
1631// FilterRel returns edges for the given relation type.
1632func (es EdgeSpecs) FilterRel(r Rel) EdgeSpecs {

Callers 3

clearM2MEdgesMethod · 0.80
addM2MEdgesMethod · 0.80
batchAddM2MMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected