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

请问,为什么库提供的接口里都带有一个tablename的参数? #34

Open
lanjing99 opened this issue Oct 14, 2016 · 1 comment

Comments

@lanjing99
Copy link

唐巧,您好!
我详细看了一下源代码,有这个疑问。为什么不把tableName作为一个实例变量保存,这样调用方就不需要每次传进一个tableName。很多时候,提供keyValue的操作,其实,不关心tablename具体是什么。只要在初始化的时候,设置一次即可。请问,您之前是怎么做这个权衡的?

@tangqiaoboy
Copy link
Member

这个库提供对于多张表的操作,如果用实例变量保存 tableName, 如果遇到上层同时对两个表进行操作,就可能产生并发相关的问题。

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

No branches or pull requests

2 participants