Skip to content

Commit 79cd3e3

Browse files
stephencelisgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent ca966e1 commit 79cd3e3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -403,14 +403,14 @@ struct Book {
403403
### Table definition tools
404404
405405
This library does not come with any tools for actually constructing table definition queries,
406-
such as `CREATE TABLE`, `ALTER TABLE`, and so on. That is, there are no APIs for performing the
406+
such as `CREATE TABLE`, `ALTER TABLE`, and so on. That is, there are no APIs for performing the
407407
following kinds of queries:
408408
409409
@Row {
410410
@Column {
411411
```swift
412412
Reminder.createTable()
413-
// ⚠️ Theoretical API that does
413+
// ⚠️ Theoretical API that does
414414
// not actually exist.
415415
```
416416
}
@@ -460,7 +460,7 @@ table could be as simple as this:
460460
var name = ""
461461
}
462462
463-
migrator.migrate("Create 'reminders' table") { db in
463+
migrator.migrate("Create 'reminders' table") { db in
464464
// ⚠️ Theoretical 'createTable' API. Does not actually exist.
465465
try Reminder.createTable().execute(db)
466466
}
@@ -479,12 +479,12 @@ migration:
479479
- var name = ""
480480
+ var title = ""
481481
}
482-
483-
migrator.migrate("Create 'reminders' table") { db in
482+
483+
migrator.migrate("Create 'reminders' table") { db in
484484
// ⚠️ Theoretical 'createTable' API. Does not actually exist.
485485
try Reminder.createTable().execute(db)
486486
}
487-
+migrator.migrate("Rename 'name' to 'title'") { db in
487+
+migrator.migrate("Rename 'name' to 'title'") { db in
488488
+ // ⚠️ Theoretical 'rename(from:)' API. Does not actually exist.
489489
+ try Reminder.title.rename(from: "name").execute(db)
490490
+}

0 commit comments

Comments
 (0)