From 81a8100140c04bfac5f21e73358cac72fa8700a3 Mon Sep 17 00:00:00 2001 From: Tanner Nelson Date: Mon, 2 Oct 2017 19:13:13 -0400 Subject: [PATCH] .all() example --- 3.0/docs/sqlite/overview.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/3.0/docs/sqlite/overview.md b/3.0/docs/sqlite/overview.md index e63b1008..75d040bb 100644 --- a/3.0/docs/sqlite/overview.md +++ b/3.0/docs/sqlite/overview.md @@ -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