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

Method Aggregate

ent/share_query.go:375–377  ·  view source on GitHub ↗

Aggregate returns a ShareSelect configured with the given aggregations.

(fns ...AggregateFunc)

Source from the content-addressed store, hash-verified

373
374// Aggregate returns a ShareSelect configured with the given aggregations.
375func (sq *ShareQuery) Aggregate(fns ...AggregateFunc) *ShareSelect {
376 return sq.Select().Aggregate(fns...)
377}
378
379func (sq *ShareQuery) prepareQuery(ctx context.Context) error {
380 for _, inter := range sq.inters {

Callers

nothing calls this directly

Calls 1

SelectMethod · 0.95

Tested by

no test coverage detected