mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
README.md: RecordError has been renamed PersistenceError.
This commit is contained in:
1 parent
7782bcddac
commit
7fc282a2d5
1 file changed
+1
-1
@@ -1894,7 +1894,7 @@ try dbQueue.inDatabase { db in
|
||||
|
||||
- `insert`, `update`, `save` and `delete` can throw a [DatabaseError](#error-handling) whenever an SQLite integrity check fails.
|
||||
|
||||
- `update` and `reload` methods can also throw a RecordError of type RecordNotFound, should the update or reload fail because the record does not exist in the database.
|
||||
- `update` and `reload` methods can also throw a PersistenceError of type NotFound, should the update or reload fail because the record does not exist in the database.
|
||||
|
||||
When saving a record that may or may not already exist in the database, prefer the `save` method: it performs the UPDATE or INSERT statement that makes sure your values are saved in the database.
|
||||
|
||||
|
||||
Reference in new issue
Block a user