From dbbded56cf17fdbd78fd4b5e7030c2cd1cf4782b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 1 May 2016 19:16:34 +0200 Subject: [PATCH] README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 85699397d..a993bbea8 100644 --- a/README.md +++ b/README.md @@ -1539,7 +1539,7 @@ pointOfInterest.exists(db) // Bool - `save` makes sure your values are stored in the database. - It performs an UPDATE if the record has a non-null primary key, and then, if no row was modified, an INSERT. It directly perfoms an INSERT if the record has a null primary key. + It performs an UPDATE if the record has a non-null primary key, and then, if no row was modified, an INSERT. It directly perfoms an INSERT if the record has no primary key, or a null primary key. Despite the fact that it may execute two SQL statements, `save` behaves as an atomic operation, because GRDB serialize all database writes (see [concurrency](#concurrency)).