Skip to content

Commit 6315ced

Browse files
authored
Update PrimaryKeyedTables.md
1 parent d79717f commit 6315ced

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/StructuredQueriesCore/Documentation.docc/Articles/PrimaryKeyedTables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ draft has an ID or inserting a new row if the ID is `nil`:
217217
@Row {
218218
@Column {
219219
```swift
220-
let reminder = Reminder(
220+
let reminder = Reminder.Draft(
221221
id: 1,
222222
title: "Get groceries",
223223
isCompleted: false
@@ -231,7 +231,7 @@ draft has an ID or inserting a new row if the ID is `nil`:
231231
("id", "isCompleted", "title")
232232
VALUES
233233
(1, 0, 'Get groceries')
234-
ON CONFLICT DO UPDATE SET
234+
ON CONFLICT ("id") DO UPDATE SET
235235
"isCompleted" =
236236
"excluded"."isCompleted",
237237
"title" = "excluded"."title"

0 commit comments

Comments
 (0)