mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Update README.md
This commit is contained in:
1 parent
2a917823ed
commit
7ded56dfc4
1 file changed
+1
-1
@@ -2280,7 +2280,7 @@ let spain = try Country.fetchOne(db, key: "ES") // Country?
|
||||
To update a record in the database, call the `update` method:
|
||||
|
||||
```swift
|
||||
if let player = try Player.fetchOne(db, key: 1)
|
||||
if let player = try Player.fetchOne(db, key: 1) {
|
||||
player.score = 1000
|
||||
try player.update(db)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user