Abstract: In one embodiment, undo and redo operations of an application are implemented using patchsets or changesets. When changes are made by the application, a transaction is performed against a relational database including one or more changes to reflect the changes made by the application. The one or more changes are tracked to produce a set of tracked changes. In response to detecting the transaction is to be committed, the set of tracked changes is converted to a patchset or changeset. The patchset or changeset is stored to a transaction table and the transaction committed. In response to a request to undo the changes made by the application, the one or more changes of the patchset or changeset are inverted to produce an inverted patchset or changeset, that is then applied. In response to a request to redo the changes made by the application, the patchset or changeset is applied as is.