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

Method Aggregate

ent/setting_query.go:493–496  ·  view source on GitHub ↗

Aggregate adds the given aggregation functions to the selector query.

(fns ...AggregateFunc)

Source from the content-addressed store, hash-verified

491
492// Aggregate adds the given aggregation functions to the selector query.
493func (ss *SettingSelect) Aggregate(fns ...AggregateFunc) *SettingSelect {
494 ss.fns = append(ss.fns, fns...)
495 return ss
496}
497
498// Scan applies the selector query and scans the result into the given value.
499func (ss *SettingSelect) Scan(ctx context.Context, v any) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected