Skip to content

compileExpression

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

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

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

CompiledExpression | CompiledSingleRowExpression