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

Method Aggregate

ent/task_query.go:338–340  ·  view source on GitHub ↗

Aggregate returns a TaskSelect configured with the given aggregations.

(fns ...AggregateFunc)

Source from the content-addressed store, hash-verified

336
337// Aggregate returns a TaskSelect configured with the given aggregations.
338func (tq *TaskQuery) Aggregate(fns ...AggregateFunc) *TaskSelect {
339 return tq.Select().Aggregate(fns...)
340}
341
342func (tq *TaskQuery) prepareQuery(ctx context.Context) error {
343 for _, inter := range tq.inters {

Callers

nothing calls this directly

Calls 1

SelectMethod · 0.95

Tested by

no test coverage detected