README.md

This commit is contained in:
Gwendal Roué committed 2015-12-11 10:27:05 +01:00
1 parent ca98412dec
commit 2f66dbfe8a
1 file changed
+2
+2
View File
@@ -1582,6 +1582,8 @@ try person.insert(db)
person.id // some value
```
The `storedDatabaseDictionary` property returns a dictionary whose keys are column names, and values any DatabaseValueConvertible value (Bool, Int, String, NSDate, Swift enums, etc.) See Values for more information.
> :point_up: **Note**: Classes should always 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 `let` variable (see [SR-142](https://bugs.swift.org/browse/SR-142)).