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.
1 parent 2a4d373 commit a50f2b1Copy full SHA for a50f2b1
Sources/SQLite/Typed/Query.swift
@@ -964,7 +964,16 @@ extension Connection {
964
let columnNames = try columnNamesForQuery(query)
965
966
return AnySequence {
967
- AnyIterator { statement.next().map { Row(columnNames, $0) } }
+ return AnyIterator {
968
+ do {
969
+ if let model = try statement.failableNext() {
970
+ return Row(columnNames,model)
971
+ }
972
+ } catch {
973
+ return nil
974
975
976
977
}
978
979
0 commit comments