incubator-seata-go
incubator-seata-go copied to clipboard
Refactor the implementation of the beforeImage and afterImage in the undo log
What would you like to be added:
- Abstract beforeImage and afterImage, define them as interfaces, and implement their capabilities for MySQL.
- Replace the definitions in the executor with the new implementations mentioned above.
- Deprecate the implementation in the undo/builder package.
Why is this needed:
- Currently, there are two separate implementations for constructing undo log images, located in the exec package and the undo/builder package.
- The implementation in the undo/builder package is not being utilized.
- To better support different types of databases in the future, the implementation within the executor needs to be redefined and abstracted.