Skip to content

PreparedQueryResult

Defined in: packages/client/src/index.ts:1354

Result of SyncClient.prepareQuery: the lazy relations the guard scanned out of the SQL (∪ the explicit use) and activated. Activation means the group’s STREAM IS STARTED — reads are safe from the tripwire — not that its initial catch-up has completed; await SyncClient.groupReady per key for that (see ADR-0021 / ADR-0032 decision 6).

Parameterized by the TABLE-NAME UNION, not the registry: keyof TRegistry in an output position would make the registry parameter contravariant, and SyncClient<ConcreteRegistry> would stop being assignable to bare-SyncTableRegistry supertypes — the erasure pattern consumer seams rely on. A name union in output position keeps the whole client covariant in its registry.

TTable extends string = string

lazyTables: readonly TTable[]

Defined in: packages/client/src/index.ts:1355