MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / ByUserField

Function ByUserField

ent/task/task.go:169–173  ·  view source on GitHub ↗

ByUserField orders the results by user field.

(field string, opts ...sql.OrderTermOption)

Source from the content-addressed store, hash-verified

167
168// ByUserField orders the results by user field.
169func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption {
170 return func(s *sql.Selector) {
171 sqlgraph.OrderByNeighborTerms(s, newUserStep(), sql.OrderByField(field, opts...))
172 }
173}
174func newUserStep() *sqlgraph.Step {
175 return sqlgraph.NewStep(
176 sqlgraph.From(Table, FieldID),

Callers

nothing calls this directly

Calls 1

newUserStepFunction · 0.70

Tested by

no test coverage detected