Group all migration events into one row migrate:vN (if version changed) OR migrate:msgspec

- Log as a single event
- Logging config has debug parameter to lower level to DEBUG, showing migration diffs
This commit is contained in:
2026-08-07 16:20:56 +00:00
parent e0046ae9d9
commit 08f3c44f1f
4 changed files with 41 additions and 37 deletions
+3 -2
View File
@@ -76,8 +76,9 @@ history.
- In-memory data is defined by an application `msgspec.Struct` type.
- Kanta round-trips through plain builtins for persistence and diffing.
- Dict keys are serialized as strings (`str_keys=True`) for stable JSON form.
- Normalization changes introduced by struct decode/encode are logged as
`migrate:msgspec` when they produce a diff.
- Normalization changes introduced by struct decode/encode are logged together
with migrations as `migrate:vN`, or as `migrate:msgspec` when no migration
ran but normalization still produces a diff.
## Transaction Semantics