RELEASE_NOTES.md

This commit is contained in:
Gwendal Roué committed 2015-08-17 11:13:07 +02:00
1 parent bac4618978
commit 4bd1d88e1d
1 file changed
+9 -5
+9 -5
View File
@@ -3,6 +3,10 @@ Release Notes
## Next release
**Fixed**
- `UpdateStatement.Changes` members are now public ([#3](https://github.com/groue/GRDB.swift/pull/3))
**New**
- `RowModel.exists(db)` returns whether a row model has a matching row in the database.
@@ -70,7 +74,7 @@ Released July 11, 2015
- `Blob.init?(NSData?)`
Creates a Blob from NSData. Returns nil if and only if *data* is nil or zero-length (SQLite can't store empty blobs).
- `RowModel.isEdited`
A boolean that indicates whether the row model has changes that have not been saved.
@@ -78,7 +82,7 @@ Released July 11, 2015
This flag is purely informative: it does not alter the behavior the update() method, which executes an UPDATE statement in every cases.
But you can prevent UPDATE statements that are known to be pointless, as in the following example:
```swift
let json = ...
@@ -87,7 +91,7 @@ Released July 11, 2015
// Apply json payload:
person.updateFromJSON(json)
// Saves the person if it is edited (fetched then modified, or created):
if person.isEdited {
person.save(db) // inserts or updates
@@ -95,9 +99,9 @@ Released July 11, 2015
```
- `RowModel.copyDatabaseValuesFrom(_:)`
Updates a row model with values of another one.
- `DatabaseValue` adopts Equatable.
**Breaking changes**