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

support two customized property for Database/支持同时挂载使用两种数据库 #60

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

oneWalker
Copy link

support two customized properties for Database. For example, when we want to use MySQL and Mongo in the same project
支持同时挂载使用两种数据库,比如我们想要在一个数据库中同时支持SQL和MySQl两种数据库

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@leochen-g
Copy link

很需要这个功能,什么时候能够合并呢

@oneWalker
Copy link
Author

很需要这个功能,什么时候能够合并呢

我也不知道这个插件的维护者什么时候去进行更新;

你可以考虑下面三种方式:

  1. 等待这个插件核心社区人员维护合并;
  2. 自己用这个更改后的内容单独发布一个自定义包:
  3. 我之前工作用到的时候等不了,自己发布了一个自定义的,你使用这一个:@oneWalker/egg-mongoose

比较推荐2,也可以考虑1和3.

@leochen-g
Copy link

很需要这个功能,什么时候能够合并呢

我也不知道这个插件的维护者什么时候去进行更新;

你可以考虑下面三种方式:

  1. 等待这个插件核心社区人员维护合并;
  2. 自己用这个更改后的内容单独发布一个自定义包:
  3. 我之前工作用到的时候等不了,自己发布了一个自定义的,你使用这一个:@oneWalker/egg-mongoose

比较推荐2,也可以考虑1和3.

你的这个适配egg2 版本吗

@oneWalker
Copy link
Author

很需要这个功能,什么时候能够合并呢

我也不知道这个插件的维护者什么时候去进行更新;
你可以考虑下面三种方式:

  1. 等待这个插件核心社区人员维护合并;
  2. 自己用这个更改后的内容单独发布一个自定义包:
  3. 我之前工作用到的时候等不了,自己发布了一个自定义的,你使用这一个:@oneWalker/egg-mongoose

比较推荐2,也可以考虑1和3.

你的这个适配egg2 版本吗

代码保持了和最近这个的官方版本的一致性。

印象eggjs这几年没有什么特别重大的版本变化吧。这个兼容的修改的完成其实大概是在2019,理论上是支持的。

当然为了安全,你也可以用一些testcase进行测试。

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