We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Row.get()
1 parent 172b3e5 commit d68e0a7Copy full SHA for d68e0a7
Documentation/Index.md
@@ -757,6 +757,18 @@ for user in try db.prepare(users) {
757
promise to the compiler that they’ll never be `NULL`), while `Expression<T?>`
758
values remain wrapped.
759
760
+⚠ Column subscripts on `Row` will force try and abort execution in error cases
761
+If you want to handle this yourself, use `Row.get(_ column: Expression<V>)`:
762
+
763
+```swift
764
+for user in try db.prepare(users) {
765
+ do {
766
+ print("name: \(try user.get(name))")
767
+ } catch {
768
+ // handle
769
+ }
770
+}
771
+```
772
773
### Plucking Rows
774
0 commit comments