You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add static `fetch` helpers, `find`
Let's support more ergonomics with functions that complement GRDB's
functions.
This includes static versions of `fetchAll`, etc.:
```diff
-try Reminder.all.fetchAll(db)
+try Reminder.fetchAll(db)
```
As well as new APIs for finding and unwrapping primary keyed records:
```diff
-try Reminder.find(1).fetchOne(db) // Optional<Reminder>
+try Reminder.find(db, key: 1) // Reminder
```
This includes a method version, as well:
```swift
try Reminder.where(\.isCompleted).find(db, key: 1)
```
* wip
* remove fetchAll-keys (not pulling its weight)
* wip
0 commit comments