From 9a0fa2f8b3a42e9dc546e2fa1c80e8171b17584d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Thu, 8 Dec 2016 18:41:16 +0100 Subject: [PATCH] Documentation --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1efb79da3..9ad1d752e 100644 --- a/README.md +++ b/README.md @@ -3264,7 +3264,7 @@ protocol TypedRequest : Request { } ``` -The `prepare(_:)` function returns a tuple made of a [prepared statement](#prepared-statements) and an optional [row adapter](#row-adapters). +The `prepare(_:)` function returns a tuple made of a [prepared statement](#prepared-statements) and an optional [row adapter](#row-adapters). The prepared statement tells which SQL query should be executed. The row adapter can help *presenting* the fetched rows in the way expected by the row consumers (we'll see an example below). A Request doesn't know what to fetch, but it can feed the [fetching methods](#fetching-methods) of any fetchable type ([row](#fetching-rows), [value](#value-queries), or [record](#records)): @@ -3343,7 +3343,7 @@ You can now use the `someCustomRequest` method just like built-in requests from try Person.someCustomRequest().fetchAll(db) // [Person] ``` -Another example, which builds a JOIN request with a [row adapter](#row-adapters): +Another example which demonstrates a possible use case for [row adapters](#row-adapters): ```swift struct BookAuthorPair : RowConvertible {