Documentation

This commit is contained in:
Gwendal Roué committed 2016-03-11 17:25:12 +01:00
1 parent 2e4dec741a
commit f21ddc0f7f
1 file changed
+3 -2
+3 -2
View File
@@ -100,9 +100,10 @@ let favorite = SQLColumn("favorite")
let paris = PointOfInterest.fetchOne(dbQueue, key: 1) // PointOfInterest?
let berlin = PointOfInterest.filter(title == "Berlin").fetchOne(dbQueue) // PointOfInterest?
let request = PointOfInterest.filter(favorite).order(title)
let favoritePois = request.fetchAll(dbQueue) // [PointOfInterest]
let favoritePoiCount = request.fetchCount(dbQueue) // Int
let favs = request.fetchAll(dbQueue) // [PointOfInterest]
let favCount = request.fetchCount(dbQueue) // Int
```