From ea85d577d84afa55b56dd45bfd996f56875790be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Thu, 22 Sep 2016 07:48:37 +0200 Subject: [PATCH] Clarification the behavior of the REPLACE conflict handling regarding transaction observers --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 51e656ffc..c208df6df 100644 --- a/README.md +++ b/README.md @@ -2074,7 +2074,7 @@ try person.insert(db) > - if you specify the `ignore` policy at the table level, don't implement the `didInsert` method: it will be called with some random id in case of failed insert. > - if you specify the `ignore` policy at the query level, the `didInsert` method is never called. > -> :warning: **Warning**: the `REPLACE` conflict policy may delete rows so that inserts and updates can succeed. Those deletions are not reported to [transaction observers](#database-changes-observation). +> :warning: **Warning**: [`ON CONFLICT REPLACE`](https://www.sqlite.org/lang_conflict.html) may delete rows so that inserts and updates can succeed. Those deletions are not reported to [transaction observers](#database-changes-observation). ## Record Class @@ -3054,7 +3054,7 @@ do { > > :point_up: **Note**: the databaseDidChange(with:) and databaseWillCommit() callbacks must not touch the SQLite database. This limitation does not apply to databaseDidCommit and databaseDidRollback which can use their database argument. > -> :warning: **Warning**: the `REPLACE` conflict policy may delete rows so that inserts and updates can succeed. Those deletions are not reported to transaction observers. +> :warning: **Warning**: [`ON CONFLICT REPLACE`](https://www.sqlite.org/lang_conflict.html) may delete rows so that inserts and updates can succeed. Those deletions are not reported to transaction observers. [FetchedRecordsController](#fetchedrecordscontroller) is based on the TransactionObserver protocol.