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

Function ByStoragePolicyCount

ent/node/node.go:201–205  ·  view source on GitHub ↗

ByStoragePolicyCount orders the results by storage_policy count.

(opts ...sql.OrderTermOption)

Source from the content-addressed store, hash-verified

199
200// ByStoragePolicyCount orders the results by storage_policy count.
201func ByStoragePolicyCount(opts ...sql.OrderTermOption) OrderOption {
202 return func(s *sql.Selector) {
203 sqlgraph.OrderByNeighborsCount(s, newStoragePolicyStep(), opts...)
204 }
205}
206
207// ByStoragePolicy orders the results by storage_policy terms.
208func ByStoragePolicy(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption {

Callers

nothing calls this directly

Calls 1

newStoragePolicyStepFunction · 0.70

Tested by

no test coverage detected