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

Function compileExpression

packages/db/src/query/compiler/evaluators.ts:89–95  ·  view source on GitHub ↗
(
  expr: BasicExpression,
  isSingleRow: boolean = false,
)

Source from the content-addressed store, hash-verified

87 * This eliminates branching during evaluation by pre-compiling the expression structure.
88 */
89export function compileExpression(
90 expr: BasicExpression,
91 isSingleRow: boolean = false,
92): CompiledExpression | CompiledSingleRowExpression {
93 const compiledFn = compileExpressionInternal(expr, isSingleRow)
94 return compiledFn
95}
96
97/**
98 * Compiles a single-row expression into an optimized evaluator function.

Callers 14

processOrderByFunction · 0.70
compileQueryFunction · 0.70
processJoinFunction · 0.70
compileSelectValueFunction · 0.70
compileConditionalSelectFunction · 0.70
processArgumentFunction · 0.70
addFromObjectFunction · 0.70
processGroupByFunction · 0.70
getAggregateFunctionFunction · 0.70

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…