From 94b0c77c9d1b204f8c769261a2103e2119664f37 Mon Sep 17 00:00:00 2001 From: Matt <1009003+tantaman@users.noreply.github.com> Date: Thu, 12 Oct 2023 14:13:47 -0400 Subject: [PATCH] thoughts on data validation rules on write --- notes.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/notes.md b/notes.md index 623f58b1f..4ec91b1c6 100644 --- a/notes.md +++ b/notes.md @@ -1,3 +1,16 @@ +# write permissions + +- 2 phase commit +- whole row to write callback +- write callback can reject in which case we.. + Well no data changed but we need to get the data back to the client. + We could + 1. record the db version that failed and somehow get that back to the client + 2. bump the db version of the record, causing all clients to re-pull it + 3. Do nothing an allow client to be diverged. + +Note: data validation rules / write permissions should only be enforced in a hub and spoke topology. + # back-to-cid - cid from `pragma_table_info`