From f6f236512bfb17c39bfe91af891be5756c037999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Fri, 7 Dec 2018 18:08:53 +0100 Subject: [PATCH] Documentation --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 531fd025a..2f7014917 100644 --- a/README.md +++ b/README.md @@ -2174,7 +2174,7 @@ It is possible to [avoid useless updates](#record-comparison): ```swift if let player = try Player.fetchOne(db, key: 1) { - // does nothing if score has not changed + // does not hit the database if score has not changed try player.updateChanges(db) { $0.score = 1000 } @@ -2960,7 +2960,7 @@ The `updateChanges` methods perform a database update of the changed columns onl if try newPlayer.updateChanges(db, from: oldPlayer) { print("player was modified, and updated in the database") } else { - print("player was not modified") + print("player was not modified, and database was not hit") } } ``` @@ -2977,7 +2977,7 @@ The `updateChanges` methods perform a database update of the changed columns onl if modified { print("player was modified, and updated in the database") } else { - print("player was not modified") + print("player was not modified, and database was not hit") } } ``` @@ -2993,7 +2993,7 @@ The `updateChanges` methods perform a database update of the changed columns onl if try player.updateChanges(db) { print("player was modified, and updated in the database") } else { - print("player was not modified") + print("player was not modified, and database was not hit") } } ```