From 283f08de079ea92b5098ff1cb387d2c44941bbcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 20 Jan 2018 09:13:45 +0100 Subject: [PATCH] RecordBox changelog --- CHANGELOG.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ace95586..72e050ecf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,32 @@ Release Notes ============= +## Next Version + +**New** + +- The RecordBox class brings changes tracking to any record type ([documentation](https://github.com/groue/GRDB.swift/blob/master/README.md#recordbox-class)): + + ```swift + // A regular record struct + struct Player: RowConvertible, MutablePersistable { ... } + + try dbQueue.inDatabase { db in + // Fetch a boxed player + if let player = try RecordBox.fetchOne(db, key: 1) { + player.value.score = 300 + + if player.hasPersistentChangedValues { + print("player has been modified") + } + + // Does nothing if player has not been modified: + try player.updateChanges(db) + } + } + ``` + + ## 2.6.1 Released January 19, 2018 • [diff](https://github.com/groue/GRDB.swift/compare/v2.6.0...v2.6.1)