mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Cleanup
This commit is contained in:
1 parent
2b2e92c810
commit
ed525bd1d8
1 file changed
+2
-2
@@ -65,8 +65,8 @@ extension TableMapping {
|
||||
}
|
||||
}
|
||||
|
||||
// If there is no unique index on the columns, the method raises a fatal
|
||||
// (unless fatalErrorOnMissingUniqueIndex is false, for testability).
|
||||
// Raises a fatal error if there is no unique index on the columns (unless
|
||||
// fatalErrorOnMissingUniqueIndex is false, for testability).
|
||||
static func filter(_ db: Database, keys: [[String: DatabaseValueConvertible?]], fatalErrorOnMissingUniqueIndex: Bool = true) throws -> QueryInterfaceRequest<Self> {
|
||||
// SELECT * FROM table WHERE ((a=? AND b=?) OR (c=? AND d=?) OR ...)
|
||||
let keyPredicates: [SQLExpression] = try keys.map { key in
|
||||
|
||||
Reference in new issue
Block a user