Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

compileExpression.md

29 lines710 Bytes

Function: compileExpression()

function compileExpression(expr, isSingleRow): CompiledSingleRowExpression | CompiledExpression;

Defined in: packages/db/src/query/compiler/evaluators.ts:90

Compiles an expression into an optimized evaluator function. This eliminates branching during evaluation by pre-compiling the expression structure.

Parameters

expr

BasicExpression

isSingleRow

boolean = false

Returns

CompiledSingleRowExpression | CompiledExpression