feat(state): audit access resets, org and EDA writes
This commit is contained in:
1 parent
0cccef6bb7
commit
99b1f8a2d9
12 files changed
+758
-167
No files matched your search
@@ -10,6 +10,12 @@ FROM audit_json_diff(
|
||||
) d
|
||||
ORDER BY d.field;
|
||||
|
||||
-- name: LockAuditRecord :exec
|
||||
-- Serialises a read-modify-write on one audited record so the old side the
|
||||
-- audit row reports cannot change between the read and the write. Row locks
|
||||
-- cannot hold a key that does not exist yet; this can.
|
||||
SELECT pg_advisory_xact_lock(hashtextextended(sqlc.arg(table_name)::text || ':' || sqlc.arg(record_key)::text, 0));
|
||||
|
||||
-- name: InsertAudit :exec
|
||||
-- The generic write for tables that are not control-plane resources. Callers
|
||||
-- pass the table's own name as table_name; old_value is nil for a create and
|
||||
|
||||
Reference in new issue
Block a user