MCPcopy
hub / github.com/ent/ent / To

Function To

dialect/sql/sqlgraph/graph.go:114–119  ·  view source on GitHub ↗

To sets the destination of the step.

(table, column string)

Source from the content-addressed store, hash-verified

112
113// To sets the destination of the step.
114func To(table, column string) StepOption {
115 return func(s *Step) {
116 s.To.Table = table
117 s.To.Column = column
118 }
119}
120
121// Edge sets the edge info for getting the neighbors.
122func Edge(rel Rel, inverse bool, table string, columns ...string) StepOption {

Callers 15

OrderByEdgeCountFunction · 0.92
OrderByEdgeTermsFunction · 0.92
QueryOwnerMethod · 0.92
QueryAdminsMethod · 0.92
QueryAdminsMethod · 0.92
QueryOwnerMethod · 0.92
QueryOwnerMethod · 0.92
QueryCarMethod · 0.92
QueryPetsMethod · 0.92
QueryFriendsMethod · 0.92
QueryCarMethod · 0.92
QueryPetsMethod · 0.92

Calls

no outgoing calls

Tested by 9

OrderByEdgeCountFunction · 0.74
OrderByEdgeTermsFunction · 0.74
TestNeighborsFunction · 0.56
TestSetNeighborsFunction · 0.56
TestHasNeighborsFunction · 0.56
TestHasNeighborsWithFunction · 0.56
TestOrderByNeighborTermsFunction · 0.56