mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
README.md
This commit is contained in:
1 parent
c639a785f0
commit
c29578eaa1
1 file changed
+2
-2
@@ -111,7 +111,7 @@ let rows = dbQueue.inDatabase { db in
|
||||
}
|
||||
```
|
||||
|
||||
**Row queries are lazy**. They are Swift *sequences*, that iterates SQLite results as it is consumed.
|
||||
**A row sequence is lazy**. It iterates SQLite results as it is consumed.
|
||||
|
||||
You will get a *fatal error* if you iterate such a sequence out of the database queue:
|
||||
|
||||
@@ -126,7 +126,7 @@ for row in rowSequence {
|
||||
}
|
||||
```
|
||||
|
||||
Avoid those fatal errors by consuming the sequence in an Array:
|
||||
Avoid those fatal errors by consuming the sequence in an Array before using it outside of a database queue:
|
||||
|
||||
```swift
|
||||
let rows = dbQueue.inDatabase { db in
|
||||
|
||||
Reference in new issue
Block a user