replAdapter
replAdapter(
client):ReplInspectionSurface
Defined in: packages/client/src/index.ts:1778
Shape a SyncClient’s inspection surface (rawQuery/rawExec) as the { query, exec } duck
@electric-sql/pglite-repl needs. Identical on the in-process and worker-attached client — on the latter
each statement routes through the worker bridge, so the REPL works even though client.pglite is
unavailable. Cast the result at the <Repl pg={...}> prop (the REPL types the prop as a full PGlite).
The surface is registry-independent, so it accepts any client’s rawQuery/rawExec pair.
Parameters
Section titled “Parameters”client
Section titled “client”Pick<SyncClient<SyncTableRegistry>, "rawQuery" | "rawExec">