mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
README.md
This commit is contained in:
1 parent
a5ec286c71
commit
5488666d20
1 file changed
+1
@@ -235,6 +235,7 @@ let hasBooks: Bool = row.value(named: "bookCount")! // false when 0
|
||||
```swift
|
||||
row.value(named: "bookCount")! as Int // OK: Int
|
||||
row.value(named: "bookCount") as Int? // OK: Int?
|
||||
row.value(named: "bookCount") as! Int // NO NO NO DON'T DO THAT!
|
||||
row.value(named: "bookCount") as? Int // NO NO NO DON'T DO THAT!
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user