We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84a8788 commit e191c7dCopy full SHA for e191c7d
SQLite.playground/Contents.swift
@@ -54,6 +54,16 @@ for user in try Array(rowIterator) {
54
let mapRowIterator = try db.prepareRowIterator(users)
55
let userIds = try mapRowIterator.map { $0[id] }
56
57
+/// using `failableNext()` on `RowIterator`
58
+let iterator = try db.prepareRowIterator(users)
59
+do {
60
+ while let row = try rowIterator.failableNext() {
61
+ print(row)
62
+ }
63
+} catch {
64
+ // Handle error
65
+}
66
+
67
/// define a virtual tabe for the FTS index
68
let emails = VirtualTable("emails")
69
0 commit comments