Skip to content

Commit d84b12b

Browse files
Documentation improvements for SelectStatements (#17)
* Use tables for comparing Swift to SQL. * wip * more improvements * wip * wip * revert * finish * wip --------- Co-authored-by: Stephen Celis <[email protected]>
1 parent d421461 commit d84b12b

File tree

2 files changed

+622
-229
lines changed

2 files changed

+622
-229
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ into the database by providing only a draft:
6161
@Row {
6262
@Column {
6363
```swift
64-
Reminder.insert(Reminder.Draft(title: "Get groceries"))
64+
Reminder
65+
.insert(Reminder.Draft(title: "Get groceries"))
6566
```
6667
}
6768
@Column {
@@ -122,8 +123,6 @@ Or even get back the entire newly inserted row:
122123
```
123124
}
124125
}
125-
```swift
126-
```
127126

128127
At times your application may want to provide the same business logic for creating a new record and
129128
editing an existing one. Your primary keyed table's `Draft` type can be used for these kinds of

0 commit comments

Comments
 (0)