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

Function NewOrderTermOptions

dialect/sql/sql.go:349–355  ·  view source on GitHub ↗

NewOrderTermOptions returns a new OrderTermOptions from the given options.

(opts ...OrderTermOption)

Source from the content-addressed store, hash-verified

347
348// NewOrderTermOptions returns a new OrderTermOptions from the given options.
349func NewOrderTermOptions(opts ...OrderTermOption) *OrderTermOptions {
350 o := &OrderTermOptions{}
351 for _, opt := range opts {
352 opt(o)
353 }
354 return o
355}
356
357// OrderByField returns an ordering by the given field.
358func OrderByField(field string, opts ...OrderTermOption) *OrderFieldTerm {

Callers 3

OrderByNeighborsCountFunction · 0.92
OrderByFieldFunction · 0.85
orderByAggFunction · 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…