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

Function isExternalEdge

dialect/sql/sqlgraph/graph.go:1873–1875  ·  view source on GitHub ↗

isExternalEdge reports if the given edge requires an UPDATE or an INSERT to other table.

(e *EdgeSpec)

Source from the content-addressed store, hash-verified

1871// isExternalEdge reports if the given edge requires an UPDATE
1872// or an INSERT to other table.
1873func isExternalEdge(e *EdgeSpec) bool {
1874 return e.Rel == M2M || e.Rel == O2M || e.Rel == O2O && !e.Inverse
1875}
1876
1877// setTableColumns is shared between updater and creator.
1878func setTableColumns(fields []*FieldSpec, edges map[Rel][]*EdgeSpec, set func(string, driver.Value)) (err error) {

Callers 1

mayTxMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…