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

Method Aggregate

ent/entity_query.go:411–413  ·  view source on GitHub ↗

Aggregate returns a EntitySelect configured with the given aggregations.

(fns ...AggregateFunc)

Source from the content-addressed store, hash-verified

409
410// Aggregate returns a EntitySelect configured with the given aggregations.
411func (eq *EntityQuery) Aggregate(fns ...AggregateFunc) *EntitySelect {
412 return eq.Select().Aggregate(fns...)
413}
414
415func (eq *EntityQuery) prepareQuery(ctx context.Context) error {
416 for _, inter := range eq.inters {

Callers

nothing calls this directly

Calls 1

SelectMethod · 0.95

Tested by

no test coverage detected