MCPcopy Index your code
hub / github.com/TanStack/db / add

Function add

packages/db/src/query/builder/functions.ts:601–609  ·  view source on GitHub ↗
(
  left: T1,
  right: T2,
)

Source from the content-addressed store, hash-verified

599}
600
601export function add<T1 extends ExpressionLike, T2 extends ExpressionLike>(
602 left: T1,
603 right: T2,
604): BinaryNumericReturnType {
605 return new Func(`add`, [
606 toExpression(left),
607 toExpression(right),
608 ]) as BinaryNumericReturnType
609}
610
611export function subtract<T1 extends ExpressionLike, T2 extends ExpressionLike>(
612 left: T1,

Callers 6

createGroupByTestsFunction · 0.85
createWhereTestsFunction · 0.85
functions.test.tsFile · 0.85

Calls 1

toExpressionFunction · 0.85

Tested by 2

createGroupByTestsFunction · 0.68
createWhereTestsFunction · 0.68