File tree Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Expand file tree Collapse file tree 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.
21252125 }
21262126 }
21272127 ```
2128- Statements with results may be iterated over, using a `RowIterator` if
2129- useful.
21302128
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-
21372129 - `run` prepares a single `Statement` object from a SQL string, optionally
21382130 binds values to it (using the statement’s `bind` function), executes,
21392131 and returns the statement.
Original file line number Diff line number Diff line change @@ -236,8 +236,8 @@ extension Statement: FailableIterator {
236236}
237237
238238extension Statement {
239- public func prepareRowIterator( ) -> RowIterator {
240- return RowIterator ( statement: self , columnNames: self . columnNameMap)
239+ func prepareRowIterator( ) -> RowIterator {
240+ RowIterator ( statement: self , columnNames: columnNameMap)
241241 }
242242
243243 var columnNameMap : [ String : Int ] {
Original file line number Diff line number Diff line change 11import XCTest
2- import SQLite
2+ @ testable import SQLite
33
44#if SQLITE_SWIFT_STANDALONE
55import sqlite3
You can’t perform that action at this time.
0 commit comments