incubator-seata-go icon indicating copy to clipboard operation
incubator-seata-go copied to clipboard

Refactor the implementation of the beforeImage and afterImage in the undo log

Open Code-Fight opened this issue 10 months ago • 1 comments

What would you like to be added:

  1. Abstract beforeImage and afterImage, define them as interfaces, and implement their capabilities for MySQL.
  2. Replace the definitions in the executor with the new implementations mentioned above.
  3. Deprecate the implementation in the undo/builder package.

Why is this needed:

  1. Currently, there are two separate implementations for constructing undo log images, located in the exec package and the undo/builder package.
  2. The implementation in the undo/builder package is not being utilized.
  3. To better support different types of databases in the future, the implementation within the executor needs to be redefined and abstracted.
image image

Code-Fight avatar Dec 22 '24 05:12 Code-Fight