mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
README.md
This commit is contained in:
1 parent
6c2431912e
commit
c07d9cc8cb
1 file changed
+2
-1
@@ -1550,7 +1550,7 @@ dbQueue.inDatabase { db in
|
||||
}
|
||||
```
|
||||
|
||||
`DatabasePersistable` and `MutableDatabasePersistable` are identical, except for the three methods that are involved in insertion:
|
||||
`DatabasePersistable` and `MutableDatabasePersistable` are identical, except for the three methods that are involved in insertion.
|
||||
|
||||
```swift
|
||||
protocol MutableDatabasePersistable {
|
||||
@@ -1568,6 +1568,7 @@ protocol DatabasePersistable : MutableDatabasePersistable {
|
||||
}
|
||||
```
|
||||
|
||||
> :point_up: **Note**: Classes should prefer adopting `DatabasePersistable` over `MutableDatabasePersistable`, even if they mutate themselves in `didInsertWithRowID(:forColumn:)`. They'll avoid strange compiler errors when they insert an instance stored in a a `let` variable (see [SR-142](https://bugs.swift.org/browse/SR-142)).
|
||||
|
||||
### Customizing the CRUD methods
|
||||
|
||||
|
||||
Reference in new issue
Block a user