mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Miigration Guide WIP
This commit is contained in:
1 parent
2b7b03846e
commit
cbcbbe9c8f
1 file changed
+9
@@ -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
|
||||
Reference in new issue
Block a user