07 · Tables A→ZI · Version, time-travel & recover
Diff two versions
Compare two table versions row-by-row - like git diff for your data.
diff_table_versions compares two versions
row-by-row - git diff for table data. Use it to see exactly what a write
changed before deciding whether to roll back.
Diff
eddytor diff table eddytor sales orders --from 2 --to 4diff_table_versions(table="eddytor.cfg_xxx.<uuid>_orders", from_version=2, to_version=4)Returns, per changed row:
changeType-INSERT,DELETE, orUPDATE.current/previous- the row values on each side.changedColumns- for updates, which columns differ.
Requirements & behaviour
Heads up
Diff requires at least one primary-key column - it's how
rows are matched across versions. It handles schema evolution by comparing only
the columns present in both versions.
Find the version numbers first with
get_table_history (CLI: eddytor get history).
The investigate-then-revert flow
get_table_history→ spot the suspicious version.diff_table_versions→ confirm what actually changed.- Decide:
rollback_tableto undo, or a targetedmerge_rowsfix.