-
Notifications
You must be signed in to change notification settings - Fork 35
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
fix: manager库支持了sequelize库的使用 #3
base: master
Are you sure you want to change the base?
Conversation
这两个 pr 周末我确认下,感谢你的 pr |
return this.app.model.query(sql, { replacements: params, type: this.app.model.QueryTypes.SELECT }); | ||
// const { ctx: { app: { mysql } } } = this; | ||
// const xprofiler_logs = mysql.get('xprofiler_logs'); | ||
// return xprofiler_logs.query(sql, params); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consoleQuery 和 logsQuery 在 seq 下如果都一致了,没必要区分两个方法了
|
||
// redis | ||
userConfig.redis = { | ||
config.redis = { | ||
client: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
用 userConfig,config 是原则上不需要配置的参数,用默认的 dfault 即可
}, | ||
// sequelize | ||
config.sequelize = { | ||
dialect: 'postgres', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
默认 mysql
// }, | ||
// }; | ||
|
||
// userConfig.xprofilerConsole = ''; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里保持原样,不要注释掉
// password: '', | ||
// db: 0, | ||
// }, | ||
// }; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这部分可以删除了
manager库支持了sequelize库的使用