Skip to content

ReplDatabase

Defined in: types.ts:20

The database the REPL runs statements on: anything with query and exec in pgwasm’s shapes. A Pgwasm is one, and so is @pgxsinkit/client’s replAdapter(client). The REPL waits for waitReady when there is one.

readonly optional waitReady?: Promise<void>

Defined in: types.ts:23

exec(sql, options?): Promise<readonly ReplResults[]>

Defined in: types.ts:22

string

ReplQueryOptions

Promise<readonly ReplResults[]>


query(sql, params?, options?): Promise<ReplResults>

Defined in: types.ts:21

string

unknown[]

ReplQueryOptions

Promise<ReplResults>