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.
Properties
Section titled “Properties”waitReady?
Section titled “waitReady?”
readonlyoptionalwaitReady?:Promise<void>
Defined in: types.ts:23
Methods
Section titled “Methods”exec()
Section titled “exec()”exec(
sql,options?):Promise<readonlyReplResults[]>
Defined in: types.ts:22
Parameters
Section titled “Parameters”string
options?
Section titled “options?”Returns
Section titled “Returns”Promise<readonly ReplResults[]>
query()
Section titled “query()”query(
sql,params?,options?):Promise<ReplResults>
Defined in: types.ts:21
Parameters
Section titled “Parameters”string
params?
Section titled “params?”unknown[]
options?
Section titled “options?”Returns
Section titled “Returns”Promise<ReplResults>