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 {
3434
3535 private let database : Database
3636
37- public lazy var row : Cursor = { Cursor ( self ) } ( )
37+ /// A cursor pointing to the current row.
38+ public lazy var row : Cursor = Cursor ( self )
3839
3940 internal init ( _ database: Database , _ SQL: String ) {
4041 self . database = database
@@ -43,11 +44,11 @@ public final class Statement {
4344
4445 deinit { sqlite3_finalize ( handle) }
4546
46- public lazy var columnCount : Int = { Int ( sqlite3_column_count ( self . handle) ) } ( )
47+ public lazy var columnCount : Int = Int ( sqlite3_column_count ( self . handle) )
4748
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+ }
5152
5253 // MARK: - Binding
5354
You can’t perform that action at this time.
0 commit comments