MCPcopy Create free account
hub / github.com/efectn/go-orm-benchmarks / Aggregate

Method Aggregate

bench/ent/model_query.go:302–304  ·  view source on GitHub ↗

Aggregate returns a ModelSelect configured with the given aggregations.

(fns ...AggregateFunc)

Source from the content-addressed store, hash-verified

300
301// Aggregate returns a ModelSelect configured with the given aggregations.
302func (mq *ModelQuery) Aggregate(fns ...AggregateFunc) *ModelSelect {
303 return mq.Select().Aggregate(fns...)
304}
305
306func (mq *ModelQuery) prepareQuery(ctx context.Context) error {
307 for _, inter := range mq.inters {

Callers

nothing calls this directly

Calls 1

SelectMethod · 0.95

Tested by

no test coverage detected