Skip to content
Source
Sign inSign up
TanStack/db

Handle pushed down predicates in Electric collection #618

Mergedkevin-dp(GitHub profile, opens in a new tab)merged 5 commits intoquery-driven-sync fromrefs/pull/618/headmerged by samwillis(GitHub profile, opens in a new tab)

Showing 8 changed files with 116 additions and 11 deletions (loading 5).

x
0 of 8 viewed, 8 left
5 additions and 0 deletions.changeset/tender-carpets-cheat.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+"@tanstack/electric-db-collection": patch
+---
+​
+Handle predicates that are pushed down.
84 additions and 11 deletionspackages/electric-db-collection/src/electric.tsModified
View file
@@ -6,18 +6,22 @@
} from "@electric-sql/client"
import { Store } from "@tanstack/store"
import DebugModule from "debug"
+import { DeduplicatedLoadSubset } from "@tanstack/db"
import {
ExpectedNumberInAwaitTxIdError,
StreamAbortedError,
TimeoutWaitingForMatchError,
TimeoutWaitingForTxIdError,
} from "./errors"
+import { compileSQL } from "./sql-compiler"
import type {
BaseCollectionConfig,
CollectionConfig,
DeleteMutationFnParams,
InsertMutationFnParams,