mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
Documentation
This commit is contained in:
1 parent
7076809b71
commit
c5255872ca
1 file changed
+2
-2
@@ -4146,13 +4146,13 @@ controller.trackChanges(
|
||||
|
||||
You can change a fetched records controller's fetch request or SQL query.
|
||||
|
||||
The [notification callbacks](#the-changes-notifications) are notified of changes in the fetched records:
|
||||
|
||||
```swift
|
||||
controller.setRequest(Person.order(Column("name")))
|
||||
controller.setRequest(sql: "SELECT ...", arguments: ...)
|
||||
```
|
||||
|
||||
The [notification callbacks](#the-changes-notifications) are notified of eventual changes if the new request fetches a different set of records.
|
||||
|
||||
> :point_up: **Note**: This behavior differs from Core Data's NSFetchedResultsController, which does not notify of record changes when the fetch request is replaced.
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user