fix(sql): Fix QueryResult typings

closes #1893
pull/1928/head
Fabian-Lars 10 months ago committed by GitHub
parent 7e1c17a635
commit 287de9b140
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -10,12 +10,12 @@ export interface QueryResult {
/**
* The last inserted `id`.
*
* This value is always `0` when using the Postgres driver. If the
* This value is not set for Postgres databases. If the
* last inserted id is required on Postgres, the `select` function
* must be used, with a `RETURNING` clause
* (`INSERT INTO todos (title) VALUES ($1) RETURNING id`).
*/
lastInsertId: number
lastInsertId?: number
}
/**

Loading…
Cancel
Save