MCPcopy Create free account
hub / github.com/ent/ent / OrderAs

Function OrderAs

dialect/sql/sql.go:313–317  ·  view source on GitHub ↗

OrderAs returns an option to set the alias for the ordering.

(as string)

Source from the content-addressed store, hash-verified

311
312// OrderAs returns an option to set the alias for the ordering.
313func OrderAs(as string) OrderTermOption {
314 return func(o *OrderTermOptions) {
315 o.As = as
316 }
317}
318
319// OrderSelected returns an option to select the ordering term.
320func OrderSelected() OrderTermOption {

Callers 4

TestOrderByNeighborTermsFunction · 0.92
OrderByNeighborsCountFunction · 0.92
orderByAggFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestOrderByNeighborTermsFunction · 0.74