We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fef3525 commit 3e35d9dCopy full SHA for 3e35d9d
src/query-builder/insert-result.ts
@@ -23,7 +23,14 @@
23
*/
24
export class InsertResult {
25
/**
26
- * The auto incrementing primary key
+ * The auto incrementing primary key of the inserted row.
27
+ *
28
+ * This property can be undefined when the query contains an `on conflict`
29
+ * clause that makes the query succeed even when nothing gets inserted.
30
31
+ * This property is always undefined on dialects like PostgreSQL that
32
+ * don't return the inserted id by default. On those dialects you need
33
+ * to use the {@link ReturningInterface.returning | returning} method.
34
35
readonly insertId: bigint | undefined
36
0 commit comments