You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Implement end-to-end tests for sync feature
Implement end-to-end tests for sync feature
Implement end-to-end tests for sync feature
chore: revert pnpm-lock.yaml to match query-driven-sync
chore: update pnpm-lock.yaml with e2e test pg dependencies
bump pnpm/action-setup version
fix pnpmlockfile
format
only run normal tests on test command
tidy and fix types
fixes
ci fix
tidy
checkpoint
cleanup between each test
add cleanup between tests
all e2e tests pass!
cleanup live queries
fixes for ci
add propper mutations to e2e tests
fix ci timouts
move the badly named accumulated data tests
fix ci flake
working query e2e tests
fix lint
fix assertions
Fix race condition between test and logical replication stream
Handle isNull and isUndefined in expression helpers
Ran prettier.
fix ci
update docs
add suport for not to extractSimpleComparisons and get tests to pass
try and fix ci race
* increase timeout
Copy file name to clipboardExpand all lines: docs/reference/functions/extractSimpleComparisons.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,15 @@ title: extractSimpleComparisons
9
9
function extractSimpleComparisons(expr):SimpleComparison[];
10
10
```
11
11
12
-
Defined in: [packages/db/src/query/expression-helpers.ts:323](https://github.com/TanStack/db/blob/main/packages/db/src/query/expression-helpers.ts#L323)
12
+
Defined in: [packages/db/src/query/expression-helpers.ts:327](https://github.com/TanStack/db/blob/main/packages/db/src/query/expression-helpers.ts#L327)
13
13
14
14
Extracts all simple comparisons from a WHERE expression.
15
15
This is useful for simple APIs that only support basic filters.
16
16
17
-
Note: This only works for simple AND-ed conditions. Throws an error if it encounters
18
-
unsupported operations like OR, NOT, or complex nested expressions.
17
+
Note: This only works for simple AND-ed conditions and NOT-wrapped comparisons.
18
+
Throws an error if it encounters unsupported operations like OR or complex nested expressions.
19
+
20
+
NOT operators are flattened by prefixing the operator name (e.g., `not(eq(...))` becomes `not_eq`).
19
21
20
22
## Parameters
21
23
@@ -33,14 +35,16 @@ Array of simple comparisons
33
35
34
36
## Throws
35
37
36
-
Error if expression contains OR, NOT, or other unsupported operations
38
+
Error if expression contains OR or other unsupported operations
Copy file name to clipboardExpand all lines: docs/reference/functions/parseLoadSubsetOptions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ title: parseLoadSubsetOptions
9
9
function parseLoadSubsetOptions(options):object;
10
10
```
11
11
12
-
Defined in: [packages/db/src/query/expression-helpers.ts:420](https://github.com/TanStack/db/blob/main/packages/db/src/query/expression-helpers.ts#L420)
12
+
Defined in: [packages/db/src/query/expression-helpers.ts:499](https://github.com/TanStack/db/blob/main/packages/db/src/query/expression-helpers.ts#L499)
13
13
14
14
Convenience function to get all LoadSubsetOptions in a pre-parsed format.
Copy file name to clipboardExpand all lines: docs/reference/interfaces/SimpleComparison.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,10 +31,10 @@ Defined in: [packages/db/src/query/expression-helpers.ts:46](https://github.com/
31
31
32
32
***
33
33
34
-
### value
34
+
### value?
35
35
36
36
```ts
37
-
value: any;
37
+
optionalvalue: any;
38
38
```
39
39
40
40
Defined in: [packages/db/src/query/expression-helpers.ts:47](https://github.com/TanStack/db/blob/main/packages/db/src/query/expression-helpers.ts#L47)
0 commit comments