Interface QueryResult<O>

Type Parameters

  • O

Hierarchy

  • QueryResult

Properties

insertId?: bigint

This is defined for insert queries on dialects that return the auto incrementing primary key from an insert.

numAffectedRows?: bigint

This is defined for insert, update, delete and merge queries and contains the number of rows the query inserted/updated/deleted.

numChangedRows?: bigint

This is defined for update queries and contains the number of rows the query changed. This is optional and only provided by some drivers like node-mysql2.

numUpdatedOrDeletedRows?: bigint

Deprecated

use numAffectedRows instead.

rows: O[]

The rows returned by the query. This is always defined and is empty if the query returned no rows.

Generated using TypeDoc