mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
PersistenceError.recordNotFound documentation
This commit is contained in:
1 parent
63192e2b75
commit
31bdb2eeaa
1 file changed
+2
-2
@@ -7510,8 +7510,8 @@ do {
|
||||
```swift
|
||||
do {
|
||||
try player.update(db)
|
||||
} catch PersistenceError.recordNotFound {
|
||||
// There was nothing to update
|
||||
} catch let PersistenceError.recordNotFound(databaseTableName: table, key: key) {
|
||||
print("Key \(key) was not found in table \(table).")
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user