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

Method Aggregate

ent/task_query.go:572–575  ·  view source on GitHub ↗

Aggregate adds the given aggregation functions to the selector query.

(fns ...AggregateFunc)

Source from the content-addressed store, hash-verified

570
571// Aggregate adds the given aggregation functions to the selector query.
572func (ts *TaskSelect) Aggregate(fns ...AggregateFunc) *TaskSelect {
573 ts.fns = append(ts.fns, fns...)
574 return ts
575}
576
577// Scan applies the selector query and scans the result into the given value.
578func (ts *TaskSelect) Scan(ctx context.Context, v any) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected