mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
README.md
This commit is contained in:
1 parent
d8bb994629
commit
7f5cb6a191
1 file changed
+1
-1
@@ -340,7 +340,7 @@ You may prefer thinking of rows as dictionaries of `DatabaseValue`, an intermedi
|
||||
```swift
|
||||
// Test if the column `date` is present:
|
||||
if let databaseValue = row["date"] {
|
||||
// Extract the desired Swift type from the database value:
|
||||
// Pick the type you need:
|
||||
let dateString: String = databaseValue.value() // "2015-09-11 18:14:15.123"
|
||||
let date: NSDate = databaseValue.value() // NSDate
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user