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

每次查询是不是都要新建连接 #1

Open
carrytao opened this issue Oct 21, 2014 · 1 comment
Open

每次查询是不是都要新建连接 #1

carrytao opened this issue Oct 21, 2014 · 1 comment

Comments

@carrytao
Copy link

连接数据库能不能只连一次,不想每次查询的时候都连接一下。还有查询的时候怎么没有join操作。
如果我想换个数据库模块,可不可以更换

@wang-su
Copy link
Member

wang-su commented Oct 22, 2014

不需要每次都连. rapid-mysql,只是对原生mysql库的简单方法包装, 如果需要换其它的数据库模块,或直接用原生driver的方法, 可以自己直接require进来用就好了,没做限制.

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