mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
README.md
This commit is contained in:
1 parent
6579e016e0
commit
4f26c366b7
1 file changed
+3
-3
@@ -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?
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user