Open History to see the last commit
1---
2id: SQLiteCompiledQuery
3title: SQLiteCompiledQuery
4---
5
6Defined in: [sqlite-compiler.ts:6](https://github.com/TanStack/db/blob/main/packages/powersync-db-collection/src/sqlite-compiler.ts#L6)
7
8Result of compiling LoadSubsetOptions to SQLite
9
10## Properties
11
12### limit?
13
14```ts
15optional limit: number;
16```
17
18Defined in: [sqlite-compiler.ts:12](https://github.com/TanStack/db/blob/main/packages/powersync-db-collection/src/sqlite-compiler.ts#L12)
19
20The LIMIT value
21
22***
23
24### orderBy?
25
26```ts
27optional orderBy: string;
28```
29
30Defined in: [sqlite-compiler.ts:10](https://github.com/TanStack/db/blob/main/packages/powersync-db-collection/src/sqlite-compiler.ts#L10)
31
32The ORDER BY clause (without "ORDER BY" keyword), e.g., "price DESC"
33
34***
35
36### params
37
38```ts
39params: unknown[];
40```
41
42Defined in: [sqlite-compiler.ts:14](https://github.com/TanStack/db/blob/main/packages/powersync-db-collection/src/sqlite-compiler.ts#L14)
43
44Parameter values in order, to be passed to SQLite query
45
46***
47
48### where?
49
50```ts
51optional where: string;
52```
53
54Defined in: [sqlite-compiler.ts:8](https://github.com/TanStack/db/blob/main/packages/powersync-db-collection/src/sqlite-compiler.ts#L8)
55
56The WHERE clause (without "WHERE" keyword), e.g., "price > ?"