[Feature request] sequelize 启动时, 链接失败不要导致全局退出 #3992
geekberryonekey
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
一般启动的时候不成功就不会让启了吧。。 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The feature, motivation(功能、动机)
在多数据源的情况下, 有的项目在部分数据源连接成功时仍然可以工作.
但是目前的链接会强制检查左右链接是否成功, 导致无法实现上述逻辑
Alternatives(替代方案)
midway/packages/sequelize/src/dataSourceManager.ts
Line 50 in eed30f2
将这个位置的强制校验换成日志输出, 如:
Additional context(其他上下文)
@midwayjs/sequelize 3.15.2
Beta Was this translation helpful? Give feedback.
All reactions