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 8431ca3 commit 01724adCopy full SHA for 01724ad
SQLite/Statement.swift
@@ -41,12 +41,10 @@ public final class Statement {
41
42
deinit { sqlite3_finalize(handle) }
43
44
- public lazy var columnCount: Int = { [unowned self] in
45
- return Int(sqlite3_column_count(self.handle))
46
- }()
+ public lazy var columnCount: Int = { Int(sqlite3_column_count(self.handle)) }()
47
48
- public lazy var columnNames: [String] = { [unowned self] in
49
- return (0..<Int32(self.columnCount)).map { String.fromCString(sqlite3_column_name(self.handle, $0))! }
+ public lazy var columnNames: [String] = {
+ (0..<Int32(self.columnCount)).map { String.fromCString(sqlite3_column_name(self.handle, $0))! }
50
}()
51
52
// MARK: - Binding
0 commit comments