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

Model 对 sequelize 的引用 可以修改成 允许动态改变吗 #62

Open
EagleQL opened this issue Nov 27, 2020 · 0 comments
Open
Labels

Comments

@EagleQL
Copy link

EagleQL commented Nov 27, 2020

当前使用的 Node.js 版本 (node -v)
(可用 node -v 命令 查看)
v12.15.0

当前使用的 sequelize 版本
(package.json 所指定的版本)
^5.21.5

问题描述
(描述出现的或寻求解决的问题)
表模型init 以后的 sequelize 以及 sequelize.config.schema 无法动态改变,建议这两个参数允许传入闭包,函数或者方法,以便动态改变当前模型查询操作针对的 数据库连接 或者 schema,从而实现 multi-tenant 多租户业务

@EagleQL EagleQL changed the title sequelize无法动态改变 Model 对 sequelize 的引用 可以修改成 允许动态改变吗 Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant