mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
Documentation
This commit is contained in:
1 parent
2e4dec741a
commit
f21ddc0f7f
1 file changed
+3
-2
@@ -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
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user