From b1edf78f1365cca4af2f6311f3e5c48752f67cfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 29 Dec 2019 18:26:05 +0100 Subject: [PATCH] Add missing reference to updateAll --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 167d3a043..7d76bb08b 100644 --- a/README.md +++ b/README.md @@ -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.