LazyGuardIndex
Defined in: packages/client/src/lazy-guard.ts:23
Static index of a registry’s synced relations and the exact quoted tokens their reads compile to.
Properties
Section titled “Properties”allKeys
Section titled “allKeys”
readonlyallKeys:ReadonlySet<string>
Defined in: packages/client/src/lazy-guard.ts:39
EVERY synced relation key (eager AND lazy). lazyKeys is a subset. Drives the hydration
guarantee (ADR-0021/0032): a live subscription must gate hydrating on every consistency group it
reads, not only the lazy ones — an eager group can still be catching up on a cold boot.
allTokens
Section titled “allTokens”
readonlyallTokens:ReadonlyMap<string, readonlystring[]>
Defined in: packages/client/src/lazy-guard.ts:45
Per synced key (eager AND lazy), the exact quoted reference token(s) its reads compile to — the same token rules as lazyTokens, just spanning every subscription timing. lazyTokens is a subset restricted to the lazy keys (activation stays lazy-only; hydration spans all).
lazyKeys
Section titled “lazyKeys”
readonlylazyKeys:ReadonlySet<string>
Defined in: packages/client/src/lazy-guard.ts:25
Registry keys whose subscription timing is lazy.
lazyTokens
Section titled “lazyTokens”
readonlylazyTokens:ReadonlyMap<string, readonlystring[]>
Defined in: packages/client/src/lazy-guard.ts:33
Per lazy key, the exact quoted reference token(s) the compiled SQL emits when reading it: the synced
table (and, for readwrite, its read-model view) as "name" or "schema"."name" — or, for a read
PROJECTION (ADR-0025), its DISTINCT local identity (localTable, the as name) rather than the
owner’s physical table. Schema-qualified when the Drizzle object carries a schema — which makes the
token collision-proof against bare aliases/CTEs.