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

Method Aggregate

ent/storagepolicy_query.go:447–449  ·  view source on GitHub ↗

Aggregate returns a StoragePolicySelect configured with the given aggregations.

(fns ...AggregateFunc)

Source from the content-addressed store, hash-verified

445
446// Aggregate returns a StoragePolicySelect configured with the given aggregations.
447func (spq *StoragePolicyQuery) Aggregate(fns ...AggregateFunc) *StoragePolicySelect {
448 return spq.Select().Aggregate(fns...)
449}
450
451func (spq *StoragePolicyQuery) prepareQuery(ctx context.Context) error {
452 for _, inter := range spq.inters {

Callers

nothing calls this directly

Calls 1

SelectMethod · 0.95

Tested by

no test coverage detected