MCPcopy Create free account
hub / github.com/TanStack/db / sum

Function sum

packages/db/src/query/builder/functions.ts:651–653  ·  view source on GitHub ↗
(arg: T)

Source from the content-addressed store, hash-verified

649}
650
651export function sum<T extends ExpressionLike>(arg: T): AggregateReturnType<T> {
652 return new Aggregate(`sum`, [toExpression(arg)]) as AggregateReturnType<T>
653}
654
655export function min<T extends ExpressionLike>(arg: T): AggregateReturnType<T> {
656 return new Aggregate(`min`, [toExpression(arg)]) as AggregateReturnType<T>

Callers 7

local-only.test.tsFile · 0.90
getAggregateFunctionFunction · 0.50
group-by.test-d.tsFile · 0.50
createGroupByTestsFunction · 0.50
group-by.test.tsFile · 0.50
functions.test.tsFile · 0.50

Calls 1

toExpressionFunction · 0.85

Tested by 1

createGroupByTestsFunction · 0.40