Skip to content

ClosableSqlClient

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

A client the driver can also shut down (e.g. a pg Pool).

end?(): Promise<unknown>;

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

End the client.

Promise<unknown>


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>[]; }>

SqlClient.query