Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

基于undo日志实现delete,insert语句的自动revert #350

Open
zkyoma opened this issue Jun 29, 2023 · 0 comments
Open

基于undo日志实现delete,insert语句的自动revert #350

zkyoma opened this issue Jun 29, 2023 · 0 comments
Assignees

Comments

@zkyoma
Copy link
Contributor

zkyoma commented Jun 29, 2023

hmily 会拦截业务 sql 生成 undo 日志,undo 日志中包含了 sql 处理前后的数据快照以及事务资源信息。参考 update 的 revert 逻辑,完善 delete 和 insert sql 的支持。在 DeleteSQLImageMappercast() 方法中,封装对应的 insert SQL 和 参数。在 InsertSQLImageMapper 中封装 delete SQL 和 参数。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants