Skip to content

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 ParameterDefault typeDescription
TRowRecord<string, unknown>Row object shape returned by SELECT or RETURNING queries.

Properties ​

PropertyModifierTypeDescriptionDefined in
rowCountreadonlynumberNumber of rows returned or affected by the SQL statement.postgres/src/ddl/postgres-query-client.ts:14
rowsreadonlyreadonly TRow[]Ordered array of typed result rows returned by the query.postgres/src/ddl/postgres-query-client.ts:12

Released under the MIT License.