Skip to main content

compileExpression

还没翻译译自英文(tanstack.com)本页 10 段都还没译

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

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

CompiledSingleRowExpression | CompiledExpression