MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / Add

Method Add

pkg/sql/sem/tree/aggregate_funcs.go:24–24  ·  view source on GitHub ↗

Add accumulates the passed datums into the AggregateFunc. Most implementations require one and only one firstArg argument. If an aggregate function requires more than one argument, all additional arguments (after firstArg) are passed in as a variadic collection, otherArgs. This interface (as opposed

(_ context.Context, firstArg Datum, otherArgs ...Datum)

Source from the content-addressed store, hash-verified

22 // This interface (as opposed to `args ...Datum`) avoids unnecessary
23 // allocation of otherArgs in the majority of cases.
24 Add(_ context.Context, firstArg Datum, otherArgs ...Datum) error
25
26 // Result returns the current value of the accumulation. This value
27 // will be a deep copy of any AggregateFunc internal state, so that

Callers 15

NextMethod · 0.65
NextMethod · 0.65
ParseDTimestampFunction · 0.65
PrevMethod · 0.65
NextMethod · 0.65
IsMaxMethod · 0.65
IsMinMethod · 0.65
MakeDTimestampTZFromDateFunction · 0.65
PrevMethod · 0.65
NextMethod · 0.65
IsMaxMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected