From ae462cb4bfb9860fc2f5bad4fa2092f045e98b88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Fri, 6 Nov 2015 13:46:21 +0100 Subject: [PATCH] README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 799c42700..50c927868 100644 --- a/README.md +++ b/README.md @@ -1642,9 +1642,9 @@ try dbQueue.inDatabase { db in - `insert`, `update`, `save` and `delete` can throw a [DatabaseError](#error-handling) whenever an SQLite integrity check fails. -- `update` and `reload` methods can also throw a RecordError of type RecordNotFound, whenever the record does not exist in the database. +- `update` and `reload` methods can also throw a RecordError of type RecordNotFound, should the update or reload fail because the record does not exist in the database. - When saving a record that may, or may not, exist in the database, prefer the `save` method: it performs the necessary UPDATE or INSERT statement. + When saving a record that may or may not already exist in the database, prefer the `save` method: it performs the UPDATE or INSERT statement that makes sure your values are saved in the database. - `delete` returns whether a database row was deleted or not.