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

Function ByCreatedAt

ent/node/node.go:156–158  ·  view source on GitHub ↗

ByCreatedAt orders the results by the created_at field.

(opts ...sql.OrderTermOption)

Source from the content-addressed store, hash-verified

154
155// ByCreatedAt orders the results by the created_at field.
156func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
157 return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
158}
159
160// ByUpdatedAt orders the results by the updated_at field.
161func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected