Open History to see the last commit
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`