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

compileSingleRowExpression.md

22 lines533 Bytes

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