File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ public final class Statement {
34
34
35
35
private let database : Database
36
36
37
- public lazy var row : Cursor = { Cursor ( self ) } ( )
37
+ /// A cursor pointing to the current row.
38
+ public lazy var row : Cursor = Cursor ( self )
38
39
39
40
internal init ( _ database: Database , _ SQL: String ) {
40
41
self . database = database
@@ -43,11 +44,11 @@ public final class Statement {
43
44
44
45
deinit { sqlite3_finalize ( handle) }
45
46
46
- public lazy var columnCount : Int = { Int ( sqlite3_column_count ( self . handle) ) } ( )
47
+ public lazy var columnCount : Int = Int ( sqlite3_column_count ( self . handle) )
47
48
48
- public lazy var columnNames : [ String ] = {
49
- ( 0 ..< Int32 ( self . columnCount ) ) . map { String . fromCString ( sqlite3_column_name ( self . handle, $0) ) ! }
50
- } ( )
49
+ public lazy var columnNames : [ String ] = ( 0 ..< Int32 ( self . columnCount ) ) . map {
50
+ String . fromCString ( sqlite3_column_name ( self . handle, $0) ) !
51
+ }
51
52
52
53
// MARK: - Binding
53
54
You can’t perform that action at this time.
0 commit comments