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

Method Aggregate

ent/file_query.go:589–591  ·  view source on GitHub ↗

Aggregate returns a FileSelect configured with the given aggregations.

(fns ...AggregateFunc)

Source from the content-addressed store, hash-verified

587
588// Aggregate returns a FileSelect configured with the given aggregations.
589func (fq *FileQuery) Aggregate(fns ...AggregateFunc) *FileSelect {
590 return fq.Select().Aggregate(fns...)
591}
592
593func (fq *FileQuery) prepareQuery(ctx context.Context) error {
594 for _, inter := range fq.inters {

Callers

nothing calls this directly

Calls 1

SelectMethod · 0.95

Tested by

no test coverage detected