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

增加控制线程内是否打印sql的功能 #47

Open
wayshall opened this issue Aug 3, 2022 · 1 comment
Open

增加控制线程内是否打印sql的功能 #47

wayshall opened this issue Aug 3, 2022 · 1 comment
Labels
Milestone

Comments

@wayshall
Copy link
Owner

wayshall commented Aug 3, 2022

增加控制线程内是否打印sql的功能

@wayshall wayshall added this to the 5.0.0 milestone Aug 3, 2022
wayshall added a commit that referenced this issue Aug 3, 2022
增加DbmThreadLocal,用于控制线程内是否打印sql

fix #47
wayshall added a commit that referenced this issue Aug 3, 2022
@wayshall
Copy link
Owner Author

wayshall commented Aug 3, 2022

通过DbmThreadLocal控制

DbmThreadLocal.logSql(false, false);
try {
	doSomeThing();
} finally {
	DbmThreadLocal.reset();
}
`

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

No branches or pull requests

1 participant