Use function instead of closures
zll600 opened this issue · comments
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
The code of these closures is too long, resulting in a large amount of code for this function, and these closures only capture the variable db
.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Rewrite these closures with functions.
Additional context
Add any other context or screenshots about the feature request here.
Thanks! I am refactoring the project, and I will consider your opinion.