Skip to content

Commit 3a59404

Browse files
authored
Update MigratingTo0.2.md
1 parent 7cb1601 commit 3a59404

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SharingGRDBCore/Documentation.docc/Articles/MigrationGuides/MigratingTo0.2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ SwiftData and its `@Query` macro. In 0.1.0, one would perform queries as either
2020
string:
2121

2222
```swift
23-
@SharedReader(.fetchAll("SELECT * FROM reminders WHERE isCompleted ORDER BY title"))
23+
@SharedReader(.fetchAll(sql: "SELECT * FROM reminders WHERE isCompleted ORDER BY title"))
2424
var completedReminders: [Reminder]
2525
```
2626

@@ -39,7 +39,7 @@ struct CompletedReminders: FetchKeyRequest {
3939
var completedReminders
4040
```
4141

42-
Each of these are cumbersome, and version 0.2.0 of SharingGRDB fixes it thanks to our newly
42+
Each of these are cumbersome, and version 0.2.0 of SharingGRDB fixes things thanks to our newly
4343
released [StructuredQueries][] library. You can now describe the query for your data in a type-safe
4444
manner, and directly inline:
4545

0 commit comments

Comments
 (0)