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

compileSingleRowExpression.md

24 lines573 Bytes

1---
2id: compileSingleRowExpression
3title: compileSingleRowExpression
4---
5​
6# Function: compileSingleRowExpression()
7​
8```ts
9function compileSingleRowExpression(expr): CompiledSingleRowExpression;
10```
11​
12Defined in: [packages/db/src/query/compiler/evaluators.ts:83](https://github.com/TanStack/db/blob/main/packages/db/src/query/compiler/evaluators.ts#L83)
13​
14Compiles a single-row expression into an optimized evaluator function.
15​
16## Parameters
17​
18### expr
19​
20[`BasicExpression`](../@tanstack/namespaces/IR/type-aliases/BasicExpression.md)
21​
22## Returns
23​
24`CompiledSingleRowExpression`