Skip to content

[Feature] 事务开启控制 #531

New issue

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

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

Already on GitHub? # to your account

Open
SalomonQiu opened this issue Mar 22, 2023 · 1 comment
Open

[Feature] 事务开启控制 #531

SalomonQiu opened this issue Mar 22, 2023 · 1 comment

Comments

@SalomonQiu
Copy link

Description

从APIJSON的源码看,事务貌似是必开启的,是否可以支持根据条件指定当前查询是否开启事务?

@TommyLemon
Copy link
Collaborator

GET, HEAD 这两个查询方法默认不开事务,其它默认开启。
事务必须让后端控制,保证安全和避免脏数据,可以重写 setAutoCommit, onCommit, onRollback 等方法自定义

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

No branches or pull requests

2 participants