Documentation

This commit is contained in:
Gwendal Roué committed 2016-09-17 06:13:37 +02:00
1 parent d052c32f7a
commit 7a0895f872
1 file changed
+1 -4
+1 -4
View File
@@ -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
```