From fa4c775f079a3252a6ae1241d856f06fc4bea826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 26 Sep 2015 18:45:11 +0200 Subject: [PATCH] README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0ff7600b6..475e518a4 100644 --- a/README.md +++ b/README.md @@ -414,16 +414,16 @@ Custom value types are supported as well through the [DatabaseValueConvertible]( **NSData** suits the BLOB SQLite columns. It can be stored and fetched from the database just like other value types. -When extracting NSData from a row, you have two options: +Yet, when extracting NSData from a row, you have an extra option: ```swift -let copiedData: NSData? = row.value(named: "data") -let notCopiedData: NSData? = row.dataNoCopy(named: "data") +let copiedData: NSData? = row.value(named: "data") // Like other value types +let notCopiedData: NSData? = row.dataNoCopy(named: "data") // Specific to NSData ``` Make sure that you do not use the non-copied data longer than the row's lifetime. -Unless you want to save data for later use, the most memory-efficient way to consume database blobs is the following: +Unless you want to save data for later use, **the most memory-efficient way** to consume database blobs is the following: ```swift for row in Row.fetch(db, "SELECT data, ...") { @@ -431,7 +431,7 @@ for row in Row.fetch(db, "SELECT data, ...") { } ``` -Compare with the anti-patterns below: +Compare with the **anti-patterns** below: ```swift for row in Row.fetch(db, "SELECT data, ...") {