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
a2540f939f
commit
dfd7b0a912
1 file changed
+1
-1
@@ -527,7 +527,7 @@ class Person : RowModel {
|
||||
if let v = row["age"] { age = v.value() } // String
|
||||
if let v = row["creationTimestamp"] { // NSDate
|
||||
// Use the DBDate custom type declared above:
|
||||
let dbDate = v.value() as DBDate?
|
||||
let dbDate: DBDate? = v.value()
|
||||
creationDate = dbDate?.date
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user