Documentation

This commit is contained in:
Gwendal Roué committed 2018-11-02 12:10:49 +01:00
1 parent 2bc8f33249
commit c48d2e484a
1 file changed
+3 -1
+3 -1
View File
@@ -6194,7 +6194,9 @@ protocol TransactionObserverType : class {
**ValueObservation tracks changes in the results of database [requests](#requests), and notifies fresh values whenever the database changes.**
For example, here is a typical UIViewController which observes the database in order to keep its view up-to-date:
Changes are only notified after they have been committed in the database. No insertion, update, or deletion in tracked tables is missed. This includes indirect changes triggered by [foreign keys](https://www.sqlite.org/foreignkeys.html#fk_actions) or [SQL triggers](https://www.sqlite.org/lang_createtrigger.html).
Here is a typical UIViewController which observes the database in order to keep its view up-to-date:
```swift
class PlayerViewController: UIViewController {