Skip to content

MutationsApiDeps

Defined in: packages/client/src/mutations-api.ts:122

The seams the factory needs — shared verbatim by both client modes (zero worker-protocol change).

TRegistry extends SyncTableRegistry

query: (sql, params?) => Promise<{ rows: Record<string, unknown>[]; }>

Defined in: packages/client/src/mutations-api.ts:129

One-shot query seam (in-process pglite.query; worker-attached the rawQuery RPC). Rows are UNMAPPED.

string

unknown[]

Promise<{ rows: Record<string, unknown>[]; }>


registry: TRegistry

Defined in: packages/client/src/mutations-api.ts:123


subscribeLiveRows: <TRow>(input, onRows) => Promise<{ initialRows: TRow[]; unsubscribe: () => void; }>

Defined in: packages/client/src/mutations-api.ts:124

TRow extends Record<string, unknown>

readonly unknown[]

string

(rows) => void

Promise<{ initialRows: TRow[]; unsubscribe: () => void; }>