33a8c07043
Make tests follow the earlier change of merging version and msgspec migration records into one.
LeoVasanko2026-08-11 01:34:06 +00:00
be3acaed3e
Smarter change record formatting to 80ch wide, shortened with ellipsis character rather than three dots.
LeoVasanko2026-08-11 01:21:34 +00:00
f489216c2a
All remaining events through logformat, cleaner migration message, prettier demo.
v0.7.0
LeoVasanko2026-08-07 17:12:29 +00:00
08f3c44f1f
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
LeoVasanko2026-08-07 16:20:56 +00:00
55fa475a13
Log new database creation, bootstrap like a transaction.
LeoVasanko2026-06-20 18:15:08 +00:00
753b7eba86
Add separate migration logging, logmigr callback, and log= override
v0.5.0
LeoVasanko2026-06-15 23:13:03 +00:00
42789e6619
Revised migration context: don't store changerecord unless something was changed, and always snapshot if and after changes done.
LeoVasanko2026-06-15 22:14:03 +00:00
c4726e6728
Stricter versioning: always store migrate version record, file must be within versions included in migrations. Log only for migrations that made changes. Allow deleting older migration functions when no longer required.
v0.4.3
LeoVasanko2026-06-15 03:09:45 +00:00
66e92739ab
Refactor Migrations internals, add caching to avoid reloading per each Kanta instance. Naming changed from MigrationRegistry to Migration, module from migrate to kanta.migrations.
v0.4.2
LeoVasanko2026-06-15 01:12:42 +00:00
4dc2f0648e
Fix creation of new database, ensuring that a bootstrap record of the initial state is always written.
v0.4.1
LeoVasanko2026-06-15 00:27:49 +00:00
bec4635460
Add kanta.ctx SimpleNamespace for user variables. This is passed to migration functions if they take a second argument. Remove the old MigrationCtx system.
v0.4.0
LeoVasanko2026-06-14 19:54:23 +00:00
c04a245366
Add read only mode that doesn't use locking. Useful for inspection while the database is in use or when no changes are intended (except in RAM).
LeoVasanko2026-06-14 19:35:06 +00:00
b501fcca86
Only Kanta exported at root, others available from submodules.
v0.3.0
LeoVasanko2026-06-13 21:26:35 +00:00
7e553bd868
Improved log formatting support by @kanta.logfmt, which replaces old resolver and user_display arguments (breaking change).
LeoVasanko2026-06-13 21:22:05 +00:00
4db046d627
Implement proper bootstrap and fatal error handling via decorators. Breaks compatibility.
v0.2.0
LeoVasanko2026-06-13 02:53:09 +00:00