mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
Add missing reference to updateAll
This commit is contained in:
1 parent
fa5198354a
commit
b1edf78f13
1 file changed
+3
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user