packages
The Louise packages, each released on its own
Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.
Dernier runRéussi#28 · main · 3 min 34 s
0Étoiles
0Forks
3Issues
packages/eventsourcing: an event's data can be redacted in place (ADR 0078)
Apps must be able to forget a person (Starfleet ADR 0049, Quebec's Law 25), and the store could only add. `event_store.redact` gives the event a `Recorded` names (stream and version, if its kind matches) new data, keeping its position, version, kind and partition: memory and in-process replace it, PostgreSQL seals it again under the row's own context and updates that row alone. `state_cache.forget` drops a cached state so the next load reads the redacted stream. Every handler of `event_store` now handles `redact`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Parents 698fb22
8 fichiers modifiés, 226 ajouts, 4 suppressions
eventsourcing/README.md+2−2eventsourcing/src/event_store.lse+6−0eventsourcing/src/event_store/in_process.lse+37−0eventsourcing/src/event_store/memory.lse+65−0eventsourcing/src/event_store/postgres/stored_events.lse+33−0eventsourcing/src/state_cache.lse+25−0eventsourcing/test/aggregate_test.lse+11−1eventsourcing/test/stored_events_test.lse+47−1