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

Function ByID

ent/task/task.go:124–126  ·  view source on GitHub ↗

ByID orders the results by the id field.

(opts ...sql.OrderTermOption)

Source from the content-addressed store, hash-verified

122
123// ByID orders the results by the id field.
124func ByID(opts ...sql.OrderTermOption) OrderOption {
125 return sql.OrderByField(FieldID, opts...).ToFunc()
126}
127
128// ByCreatedAt orders the results by the created_at field.
129func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {

Callers 2

cursorPaginationMethod · 0.92
getTaskOrderOptionFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected