From 1a45f2cfc1c8ef55b9e162b034d3bf0e5dc87cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Mon, 14 Dec 2015 08:09:24 +0100 Subject: [PATCH] README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c2fe3a215..b4c7be16c 100644 --- a/README.md +++ b/README.md @@ -1307,7 +1307,7 @@ While your migration code runs with disabled foreign key checks, those are re-en ## RowConvertible Protocol -**The `RowConvertible` protocol grants fetching methods to any type** that can be initialized from a database row: +**The `RowConvertible` protocol grants fetching methods to any type** that can be built from a database row: ```swift public protocol RowConvertible { @@ -1341,6 +1341,8 @@ PointOfInterest.fetchAll(db, "SELECT ...") // [PointOfInterest] PointOfInterest.fetchOne(db, "SELECT ...") // PointOfInterest? ``` +See [Column Values](#column-values) for more information about the `value()` method. + Both `fetch` and `fetchAll` let you iterate the full list of fetched objects. The differences are: - The array returned by `fetchAll` can take a lot of memory. Yet it can be iterated on any thread.