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

期望 create blocklet 支持是否需要使用 db 的选项 #298

Open
NateRobinson opened this issue Sep 27, 2023 · 2 comments
Open

期望 create blocklet 支持是否需要使用 db 的选项 #298

NateRobinson opened this issue Sep 27, 2023 · 2 comments
Assignees

Comments

@NateRobinson
Copy link
Contributor

当开发者选择需要用 db 之后,可以把目前支持的两种:

  • nedb
  • sequelize

当用户选择 db 之后,可以把一些模板化的代码自动提供好,省去开发者自己还要从 0 开始配置的过程。

@LancelotLewis
Copy link
Collaborator

可行,但感觉没必要
常见的作法应该是创建一个 demo 用作示例,在模板中提供这个选项感觉会过于繁琐,因为不同模板要增加这个功能可能需要的代码时不一样的
比如 express 和 nextjs,增加的代码会有一些差别

但从使用者的角度来说,这个功能肯定是好的
我们可以考虑仅在 express 系列代码中添加 db 可选功能

@NateRobinson
Copy link
Contributor Author

赞同,只在 express 系增加 db 可选功能。

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

No branches or pull requests

2 participants