File tree 3 files changed +3
-11
lines changed
3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -2125,15 +2125,7 @@ using the following functions.
2125
2125
}
2126
2126
}
2127
2127
```
2128
- Statements with results may be iterated over, using a `RowIterator` if
2129
- useful.
2130
2128
2131
- ```swift
2132
- let emailColumn = Expression< String > (" email" )
2133
- let stmt = try db.prepare (" SELECT id, email FROM users" )
2134
- let emails = try ! stmt.prepareRowIterator ().map { $0 [emailColumn] }
2135
- ```
2136
-
2137
2129
- `run` prepares a single `Statement` object from a SQL string, optionally
2138
2130
binds values to it (using the statement’s `bind` function), executes,
2139
2131
and returns the statement.
Original file line number Diff line number Diff line change @@ -236,8 +236,8 @@ extension Statement: FailableIterator {
236
236
}
237
237
238
238
extension Statement {
239
- public func prepareRowIterator( ) -> RowIterator {
240
- return RowIterator ( statement: self , columnNames: self . columnNameMap)
239
+ func prepareRowIterator( ) -> RowIterator {
240
+ RowIterator ( statement: self , columnNames: columnNameMap)
241
241
}
242
242
243
243
var columnNameMap : [ String : Int ] {
Original file line number Diff line number Diff line change 1
1
import XCTest
2
- import SQLite
2
+ @ testable import SQLite
3
3
4
4
#if SQLITE_SWIFT_STANDALONE
5
5
import sqlite3
You can’t perform that action at this time.
0 commit comments