Interface PostgresQueryResultLike

What the adapter reads from the answer to a query.

interface PostgresQueryResultLike {
    rows: unknown[];
    rowCount?: null | number;
    command?: string;
}

Properties

rows: unknown[]
rowCount?: null | number
command?: string

The command PostgreSQL says it ran, as pg reads it from the server's answer: ROLLBACK for a COMMIT that ended a transaction in which a statement failed. A pool that leaves it out is not checked for that.