Miigration Guide WIP

This commit is contained in:
Gwendal Roué committed 2020-04-07 22:04:47 +02:00
1 parent 2b7b03846e
commit cbcbbe9c8f
1 file changed
+9
+9
View File
@@ -207,6 +207,14 @@ Those changes have been applied identically to [GRDBCombine] and [RxGRDB], so th
+import GRDB
```
5. [Batch updates] used to rely of the `<-` operator. This operator has been removed. Use the `set(to:)` method instead:
```diff
-try Player.updateAll(db, Column("score") <- 0)
+try Player.updateAll(db, Column("score").set(to: 0))
```
[ValueObservation]: ../README.md#valueobservation
[DatabaseRegionObservation]: ../README.md#databaseregionobservation
[RxGRDB]: http://github.com/RxSwiftCommunity/RxGRDB
@@ -214,3 +222,4 @@ Those changes have been applied identically to [GRDBCombine] and [RxGRDB], so th
[Observing a Varying Database Region]: ../README.md#observing-a-varying-database-region
[removeDuplicates]: ../README.md#valueobservationremoveduplicates
[Custom SQL functions]: ../README.md#custom-sql-functions
[Batch updates]: ../README.md#update-requests