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

Function BySlaveKey

ent/node/node.go:191–193  ·  view source on GitHub ↗

BySlaveKey orders the results by the slave_key field.

(opts ...sql.OrderTermOption)

Source from the content-addressed store, hash-verified

189
190// BySlaveKey orders the results by the slave_key field.
191func BySlaveKey(opts ...sql.OrderTermOption) OrderOption {
192 return sql.OrderByField(FieldSlaveKey, opts...).ToFunc()
193}
194
195// ByWeight orders the results by the weight field.
196func ByWeight(opts ...sql.OrderTermOption) OrderOption {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected