README.md

This commit is contained in:
Gwendal Roué committed 2015-10-01 07:18:16 +02:00
1 parent 6579e016e0
commit 4f26c366b7
1 file changed
+3 -3
+3 -3
View File
@@ -475,11 +475,11 @@ Yet, when extracting NSData from a row, **you have the opportunity to save memor
```swift
// When the "data" column is know to be there:
let notCopiedData = row.dataNoCopy(named: "data") // NSData?
let notCopiedData = row.dataNoCopy(named: "data") // NSData?
// When the column `data` may not be there:
if let databaseValue = row["data"] {
let notCopiedData = databaseValue.dataNoCopy // NSData?
if row.hasColumn("data") {
let notCopiedData = row.dataNoCopy(named: "data") // NSData?
}
```