LookupTable.

This commit is contained in:
Brent Simmons
2017-08-07 22:09:10 -07:00
parent 67cb2c57d7
commit 2fe6b0e2a6
3 changed files with 98 additions and 36 deletions

View File

@@ -44,13 +44,13 @@ public extension DatabaseTable {
// MARK: Updating
public func updateRowsWithValue(_ value: Any, valueKey: String, whereKey: String, matches: [Any]) {
queue.update { (database: FMDatabase!) in
let _ = database.rs_updateRows(withValue: value, valueKey: valueKey, whereKey: whereKey, inValues: matches, tableName: self.name)
}
}
// public func updateRowsWithValue(_ value: Any, valueKey: String, whereKey: String, matches: [Any]) {
//
// queue.update { (database: FMDatabase!) in
//
// let _ = database.rs_updateRows(withValue: value, valueKey: valueKey, whereKey: whereKey, inValues: matches, tableName: self.name)
// }
// }
// MARK: Saving