From caace8755ed3f05f8bf481f1f350a0a3a4e93c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 21 Jul 2015 09:08:34 +0200 Subject: [PATCH] README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 983dc739f..21a81345b 100644 --- a/README.md +++ b/README.md @@ -646,6 +646,8 @@ dbQueue.inDatabase { db in } ``` +The `db.fetchOne(type:key:)` method eats any key dictionary, and returns the first RowModel with matching values. Its result is undefined unless the dictionary is *actually* a key. + Lazy sequences can not be consumed outside of a database queue, but arrays are OK: ```swift @@ -656,8 +658,6 @@ let persons = dbQueue.inDatabase { db in for person in persons { ... } // OK ``` -The `db.fetchOne(type:key:)` eats any dictionary, and just returns the first RowModel with matching values. Its result is undefined unless the dictionary is actually... a key. - ### Ad Hoc Subclasses