MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / Aggregate

Method Aggregate

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

Aggregate returns a MetadataSelect configured with the given aggregations.

(fns ...AggregateFunc)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

SelectMethod · 0.95

Tested by

no test coverage detected