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
d73ced98ad
commit
fe02fd7284
1 file changed
+3
-5
@@ -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 ... }
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user