.all() example

This commit is contained in:
Tanner Nelson 2017-10-02 19:13:13 -04:00
parent 3528a0fba0
commit 81a8100140
1 changed files with 6 additions and 0 deletions

View File

@ -144,6 +144,12 @@ query.execute().then {
If you simply want to fetch all of the results, you can use the `.all()` convenience.
This will automatically create a stream and return a future containing your results.
```swift
query.all().then { rows in
print(rows)
}
```
#### Sync
For situations where blocking is appropriate (perhaps in tests) you can use `.sync()` to block