-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
feat(sql): 事务支持 #55
Comments
Transactions cannot be nested. This is a consequence of the implicit commit performed for any current transaction when you issue a START TRANSACTION statement or one of its synonyms. |
Mysql 是不支持嵌套事务的,开启了一个事务的情况下,再开启一个事务,会隐式的提交上一个事务。所以我们就要在系统架构层面来支持事务的嵌套,常见的做法就是 SAVEPOINT. |
催更 |
很抱歉,本人困于奔波,暂时没有时间更新该项目。但这几日我会试着进行一次破坏性更新,该更新包含该功能的实现。 另: |
功能简述
添加对支持事务的数据库(和数据库引擎)的事务支持。
需求来源
在处理较为复杂的部分数据时,需要保证数据的一致性。
附加内容
有时可能同一个事务下会出现事务嵌套的情况(从代码逻辑来看)。
The text was updated successfully, but these errors were encountered: