ClosableSqlClient
Defined in: src/storage/postgres.ts:32
A client the driver can also shut down (e.g. a pg Pool).
Extends
Section titled “Extends”Methods
Section titled “Methods”end()?
Section titled “end()?”end?(): Promise<unknown>;Defined in: src/storage/postgres.ts:34
End the client.
Returns
Section titled “Returns”Promise<unknown>
query()
Section titled “query()”query(text, params?): Promise<{ rows: Record<string, unknown>[];}>;Defined in: src/storage/postgres.ts:28
Run one parameterized statement ($1, $2, …).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
text |
string |
params? |
unknown[] |
Returns
Section titled “Returns”Promise<{
rows: Record<string, unknown>[];
}>