mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
Better compilation time
This commit is contained in:
1 parent
7d6fcda03e
commit
76ab3fd1ab
1 file changed
+1
-1
@@ -217,7 +217,7 @@ public final class SelectStatement : Statement {
|
||||
/// The column names, ordered from left to right.
|
||||
public lazy var columnNames: [String] = {
|
||||
let sqliteStatement = self.sqliteStatement
|
||||
return (0..<self.columnCount).map { String.fromCString(sqlite3_column_name(sqliteStatement, Int32($0)))! }
|
||||
return (0..<self.columnCount).map { (index: Int) -> String in String.fromCString(sqlite3_column_name(sqliteStatement, Int32(index)))! }
|
||||
}()
|
||||
|
||||
/// Cache for indexOfColumn(). Keys are lowercase.
|
||||
|
||||
Reference in new issue
Block a user