MCPcopy
hub / github.com/crowdsecurity/crowdsec / Aggregate

Method Aggregate

pkg/database/ent/meta_query.go:339–341  ·  view source on GitHub ↗

Aggregate returns a MetaSelect configured with the given aggregations.

(fns ...AggregateFunc)

Source from the content-addressed store, hash-verified

337
338// Aggregate returns a MetaSelect configured with the given aggregations.
339func (_q *MetaQuery) Aggregate(fns ...AggregateFunc) *MetaSelect {
340 return _q.Select().Aggregate(fns...)
341}
342
343func (_q *MetaQuery) prepareQuery(ctx context.Context) error {
344 for _, inter := range _q.inters {

Callers 2

Calls 1

SelectMethod · 0.95

Tested by

no test coverage detected