Documentation

This commit is contained in:
Gwendal Roué committed 2016-12-01 09:23:56 +01:00
1 parent d73ced98ad
commit fe02fd7284
1 file changed
+3 -5
+3 -5
View File
@@ -623,12 +623,10 @@ Cursors come with default implementations for many operations similar to those d
```swift
// Enumerate all Github links
try Row.fetchCursor(db, "SELECT * FROM links")
.filter { row in
let url = row.value(named: "url") as URL
return url.host == "github.com" }
try URL.fetchCursor(db, "SELECT url FROM links")
.filter { url.host == "github.com" }
.enumerated()
.forEach { (index, row) in ... }
.forEach { (index, url) in ... }
```