mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
README.md
This commit is contained in:
1 parent
7393b8f333
commit
caace8755e
1 file changed
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user