Add missing reference to updateAll

This commit is contained in:
Gwendal Roué committed 2019-12-29 18:26:05 +01:00
1 parent fa5198354a
commit b1edf78f13
1 file changed
+3
+3
View File
@@ -2630,6 +2630,7 @@ try place.delete(db) // DELETE
try place.exists(db)
// Type methods
try Place.updateAll(db, ...) // UPDATE
try Place.deleteAll(db) // DELETE
try Place.deleteAll(db, keys:...) // DELETE
try Place.deleteOne(db, key:...) // DELETE
@@ -2641,6 +2642,8 @@ try Place.deleteOne(db, key:...) // DELETE
When saving an object that may or may not already exist in the database, prefer the `save` method:
- `updateAll` performs a batch update. See [Update Requests](#update-requests).
- `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 no primary key, or a null primary key.