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

Method Aggregate

ent/user_query.go:627–629  ·  view source on GitHub ↗

Aggregate returns a UserSelect configured with the given aggregations.

(fns ...AggregateFunc)

Source from the content-addressed store, hash-verified

625
626// Aggregate returns a UserSelect configured with the given aggregations.
627func (uq *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect {
628 return uq.Select().Aggregate(fns...)
629}
630
631func (uq *UserQuery) prepareQuery(ctx context.Context) error {
632 for _, inter := range uq.inters {

Callers

nothing calls this directly

Calls 1

SelectMethod · 0.95

Tested by

no test coverage detected