mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Simplify
This commit is contained in:
1 parent
095bfde072
commit
148897ad73
1 file changed
+1
-1
@@ -53,7 +53,7 @@ extension QueryInterfaceRequest: FetchRequest {
|
||||
let associations = relation.prefetchedAssociations
|
||||
if associations.isEmpty == false {
|
||||
// Eager loading of prefetched associations
|
||||
preparedRequest = preparedRequest.with(\.supplementaryFetch) { [relation] db, rows in
|
||||
preparedRequest.supplementaryFetch = { [relation] db, rows in
|
||||
try prefetch(db, associations: associations, from: relation, into: rows)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user