Skip to content

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.

readonly allKeys: 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.


readonly allTokens: ReadonlyMap<string, readonly string[]>

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).


readonly lazyKeys: ReadonlySet<string>

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

Registry keys whose subscription timing is lazy.


readonly lazyTokens: ReadonlyMap<string, readonly string[]>

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.