compileExpression

Function: compileExpression()

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

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

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