-
Notifications
You must be signed in to change notification settings - Fork 67
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
Mysql Helper #8
Comments
|
希望再来个MongoDB Helper放在issue 😘 |
那是可选的,是为了处理事务。 |
至于MongoDB的,貌似一般人都用Mongoose,我自己倒是喜欢用Helper。。 |
这个Helper,我会重构下,放到koa-for-rest中。 |
如何使用? let pool = mysql.createPool({
connectionLimit: 10,
host: '192.168.1.200',
port: 3308,
user: 'root',
password: 'xxx',
database: 'TestDB'
});
let db = new MysqlClient(pool); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: