Skip to content

findReferencedSyncedKeysInSql

findReferencedSyncedKeysInSql(sql, index): Set<string>

Defined in: packages/client/src/lazy-guard.ts:125

The compiled-SQL scan across EVERY synced relation (eager AND lazy): the registry keys whose quoted reference token appears in sql. Same exact-token matching as findReferencedLazyKeysInSql, just over LazyGuardIndex.allTokens. Drives the hydration guarantee — the caller maps each key to its consistency group and gates a live subscription’s hydrating on every group still catching up.

string

LazyGuardIndex

Set<string>