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

Method Aggregate

ent/node_query.go:524–527  ·  view source on GitHub ↗

Aggregate adds the given aggregation functions to the group-by query.

(fns ...AggregateFunc)

Source from the content-addressed store, hash-verified

522
523// Aggregate adds the given aggregation functions to the group-by query.
524func (ngb *NodeGroupBy) Aggregate(fns ...AggregateFunc) *NodeGroupBy {
525 ngb.fns = append(ngb.fns, fns...)
526 return ngb
527}
528
529// Scan applies the selector query and scans the result into the given value.
530func (ngb *NodeGroupBy) Scan(ctx context.Context, v any) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected