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

Function ByStoragePolicy

ent/node/node.go:208–212  ·  view source on GitHub ↗

ByStoragePolicy orders the results by storage_policy terms.

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

Source from the content-addressed store, hash-verified

206
207// ByStoragePolicy orders the results by storage_policy terms.
208func ByStoragePolicy(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption {
209 return func(s *sql.Selector) {
210 sqlgraph.OrderByNeighborTerms(s, newStoragePolicyStep(), append([]sql.OrderTerm{term}, terms...)...)
211 }
212}
213func newStoragePolicyStep() *sqlgraph.Step {
214 return sqlgraph.NewStep(
215 sqlgraph.From(Table, FieldID),

Callers

nothing calls this directly

Calls 1

newStoragePolicyStepFunction · 0.70

Tested by

no test coverage detected