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

fix: manager库支持了sequelize库的使用 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bianbiandashen
Copy link

manager库支持了sequelize库的使用

@hyj1991
Copy link
Member

hyj1991 commented Jul 15, 2020

这两个 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);
}

Copy link
Member

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: {
Copy link
Member

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',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

默认 mysql

// },
// };

// userConfig.xprofilerConsole = '';

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里保持原样,不要注释掉

// password: '',
// db: 0,
// },
// };

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这部分可以删除了

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

Successfully merging this pull request may close these issues.

None yet

2 participants