mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Documentation
This commit is contained in:
1 parent
d052c32f7a
commit
7a0895f872
1 file changed
+1
-4
@@ -1100,10 +1100,7 @@ let row = Row.fetchOne(db, "SELECT 'syrah'")!
|
||||
row.value(atIndex: 0) as String // "syrah"
|
||||
row.value(atIndex: 0) as Grape? // fatal error: could not convert "syrah" to Grape.
|
||||
row.value(atIndex: 0) as Grape // fatal error: could not convert "syrah" to Grape.
|
||||
|
||||
let dbv: DatabaseValue = row.value(atIndex: 0)
|
||||
String.fromDatabaseValue(dbv) // "Syrah"
|
||||
Grape.fromDatabaseValue(dbv) // nil
|
||||
Grape.fromDatabaseValue(row.value(atIndex: 0)) // nil
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user