@@ -185,7 +185,7 @@ public class Storage: NSObject {
185185 var sql = " CREATE TABLE ' \( name) ' ( "
186186 let columnsCount = columns. count
187187 for (columnIndex, column) in columns. enumerated ( ) {
188- let columnString = serialize ( column : column )
188+ let columnString = column . serialize ( )
189189 sql += " \( columnString) "
190190 if columnIndex < columnsCount - 1 {
191191 sql += " , "
@@ -333,7 +333,7 @@ public class Storage: NSObject {
333333 return res
334334 }
335335
336- public func getAll< T> ( ) throws -> [ T ] where T: Initializable {
336+ public func getAll< T> ( _ constraints : SelectConstraintBuilder ... ) throws -> [ T ] where T: Initializable {
337337 guard let anyTable = self . tables. first ( where: { $0. type == T . self } ) else {
338338 throw Error . typeIsNotMapped
339339 }
@@ -363,11 +363,11 @@ public class Storage: NSObject {
363363 let errorString = connectionRef. errorMessage
364364 throw Error . sqliteError ( code: resultCode, text: errorString)
365365 }
366- } while resultCode != apiProvider. SQLITE_DONE
366+ } while resultCode != self . apiProvider. SQLITE_DONE
367367 return result
368368 }
369369
370- public func delete< T> ( object: T ) throws {
370+ public func delete< T> ( _ object: T ) throws {
371371 guard let anyTable = self . tables. first ( where: { $0. type == T . self } ) else {
372372 throw Error . typeIsNotMapped
373373 }
@@ -404,7 +404,7 @@ public class Storage: NSObject {
404404 }
405405 }
406406
407- public func update< T> ( object: T ) throws {
407+ public func update< T> ( _ object: T ) throws {
408408 guard let anyTable = self . tables. first ( where: { $0. type == T . self } ) else {
409409 throw Error . typeIsNotMapped
410410 }
@@ -520,7 +520,7 @@ public class Storage: NSObject {
520520 }
521521 }
522522
523- public func insert< T> ( object: T ) throws -> Int64 {
523+ public func insert< T> ( _ object: T ) throws -> Int64 {
524524 guard let anyTable = self . tables. first ( where: { $0. type == T . self } ) else {
525525 throw Error . typeIsNotMapped
526526 }
@@ -556,7 +556,7 @@ public class Storage: NSObject {
556556 return connectionRef. lastInsertRowid
557557 }
558558
559- public func replace< T> ( object: T ) throws {
559+ public func replace< T> ( _ object: T ) throws {
560560 guard let anyTable = self . tables. first ( where: { $0. type == T . self } ) else {
561561 throw Error . typeIsNotMapped
562562 }
0 commit comments