MCPcopy Create free account
hub / github.com/Comfy-Org/registry-backend / ByResults

Function ByResults

ent/gitcommit/gitcommit.go:153–157  ·  view source on GitHub ↗

ByResults orders the results by results terms.

(term sql.OrderTerm, terms ...sql.OrderTerm)

Source from the content-addressed store, hash-verified

151
152// ByResults orders the results by results terms.
153func ByResults(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption {
154 return func(s *sql.Selector) {
155 sqlgraph.OrderByNeighborTerms(s, newResultsStep(), append([]sql.OrderTerm{term}, terms...)...)
156 }
157}
158func newResultsStep() *sqlgraph.Step {
159 return sqlgraph.NewStep(
160 sqlgraph.From(Table, FieldID),

Callers

nothing calls this directly

Calls 1

newResultsStepFunction · 0.85

Tested by

no test coverage detected