Interface: PostgresQueryResult<TRow>
Defined in: postgres/src/ddl/postgres-query-client.ts:10
Normalized query result returned by a PostgresQueryClient.query() invocation.
Wraps the typed result rows and affected row count returned by a parameterized PostgreSQL statement.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
TRow | Record<string, unknown> | Row object shape returned by SELECT or RETURNING queries. |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
rowCount | readonly | number | Number of rows returned or affected by the SQL statement. | postgres/src/ddl/postgres-query-client.ts:14 |
rows | readonly | readonly TRow[] | Ordered array of typed result rows returned by the query. | postgres/src/ddl/postgres-query-client.ts:12 |