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

Method Aggregate

ent/node_query.go:572–575  ·  view source on GitHub ↗

Aggregate adds the given aggregation functions to the selector query.

(fns ...AggregateFunc)

Source from the content-addressed store, hash-verified

570
571// Aggregate adds the given aggregation functions to the selector query.
572func (ns *NodeSelect) Aggregate(fns ...AggregateFunc) *NodeSelect {
573 ns.fns = append(ns.fns, fns...)
574 return ns
575}
576
577// Scan applies the selector query and scans the result into the given value.
578func (ns *NodeSelect) Scan(ctx context.Context, v any) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected