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

Function OrderSelectAs

dialect/sql/sql.go:327–332  ·  view source on GitHub ↗

OrderSelectAs returns an option to set and select the alias for the ordering.

(as string)

Source from the content-addressed store, hash-verified

325
326// OrderSelectAs returns an option to set and select the alias for the ordering.
327func OrderSelectAs(as string) OrderTermOption {
328 return func(o *OrderTermOptions) {
329 o.As = as
330 o.Selected = true
331 }
332}
333
334// OrderNullsFirst returns an option to sort nulls first.
335func OrderNullsFirst() OrderTermOption {

Callers 4

OrderByFluentFunction · 0.92
OrderByEdgeCountFunction · 0.92
TestOrderByNeighborTermsFunction · 0.92

Calls

no outgoing calls

Tested by 4

OrderByFluentFunction · 0.74
OrderByEdgeCountFunction · 0.74
TestOrderByNeighborTermsFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…