Skip to content

SqlClient

Defined in: src/storage/postgres.ts:26

Minimal structural view of a SQL client: pg Pool/Client and PGlite satisfy it.

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

Defined in: src/storage/postgres.ts:28

Run one parameterized statement ($1, $2, …).

Parameter Type
text string
params? unknown[]

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