#1 2018-01-12 04:58:07

justinsteventon
Member
Registered: 2017-12-26
Posts: 2

Using the transaction log table as an undo buffer

Most desktop UIs have an undo+redo feature.

The typical way to implement this would be by using the Command pattern (https://en.wikipedia.org/wiki/Command_pattern). However, the trouble with that pattern is that you need to create command objects for every kind of operation.

I'm curious if it would be possible to leverage the transaction log table and use roll-back to undo operations.

Has anyone tried this?

Thanks again for a great tool!

Offline

#2 2018-01-12 06:46:40

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,669
Website

Re: Using the transaction log table as an undo buffer

This is possible with the history tracking feature of the framework ORM.
You can go back in time and undo any change.

Offline

Board footer

Powered by FluxBB