MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / Aggregate

Method Aggregate

ent/node_query.go:339–341  ·  view source on GitHub ↗

Aggregate returns a NodeSelect configured with the given aggregations.

(fns ...AggregateFunc)

Source from the content-addressed store, hash-verified

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

Callers 2

offsetPaginationMethod · 0.45

Calls 1

SelectMethod · 0.95

Tested by

no test coverage detected