mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
README.md
This commit is contained in:
1 parent
67d6ac1760
commit
dbbded56cf
1 file changed
+1
-1
@@ -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)).
|
||||
|
||||
|
||||
Reference in new issue
Block a user