4 ms·
For Django, django-simple-history [1] is killer at this. It doesn't track perfectly in the same way as temporal tables (if a DB operation doesn't trigger a save
by code_biologist 2y ago
For Django, django-simple-history [1] is killer at this. It doesn't track perfectly in the same way as temporal tables (if a DB operation doesn't trigger a save hook, it won't be tracked) but the ergonomics for Django work is pretty unbeatable. Great integration into the ORM + auth + admin. History tables automatically derived from model definitions with sane nullability defaults, sane migration strategy, and hackability where needed.
It's made "can we get an audit table / undo delete for XYZ?" feature requests really easy.
[1] https://github.com/jazzband/django-simple-history https://github.com/jazzband/django-simple-history