README.md

This commit is contained in:
Gwendal Roué committed 2015-07-21 09:08:34 +02:00
1 parent 7393b8f333
commit caace8755e
1 file changed
+2 -2
+2 -2
View File
@@ -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