egg icon indicating copy to clipboard operation
egg copied to clipboard

egg-sequelize 需要支持的其他功能

Open jtyjty99999 opened this issue 9 years ago • 16 comments

参考内网egg-model:

  • sql执行时间
  • associations
  • Migration
  • ctx bind ctx.User => app/models/user.js

jtyjty99999 avatar Feb 09 '17 08:02 jtyjty99999

2个合并成一个吧

fengmk2 avatar Feb 09 '17 09:02 fengmk2

https://github.com/eggjs/egg-sequelize/pull/2

atian25 avatar Feb 13 '17 06:02 atian25

@atian25 这个issue里提到的几个feature不是在这个mr里做的,应该要另外开一个了

jtyjty99999 avatar Feb 13 '17 06:02 jtyjty99999

嗯, 所以相关的 MR 都 link 到这里.

atian25 avatar Feb 13 '17 06:02 atian25

ok

jtyjty99999 avatar Feb 13 '17 06:02 jtyjty99999

这个建表是分离的吧? 不需要调用 sync?

popomore avatar Feb 13 '17 08:02 popomore

https://github.com/eggjs/egg-sequelize/pull/3

popomore avatar Feb 13 '17 08:02 popomore

考虑支持 驼峰 <=>下划线 吗 数据库一般下划线字段。应用代码都驼峰

cycgit avatar Feb 18 '17 11:02 cycgit

@cycgit 你是想默认支持吗?

popomore avatar Feb 18 '17 12:02 popomore

@popomore 默认关闭 再加一个参数 camelCase 加载 model 的时候统一处理

cycgit avatar Feb 18 '17 13:02 cycgit

这个可以支持的,我原来做过 chenyancheng [email protected]于2017年2月18日 周六21:07写道:

@popomore https://github.com/popomore 默认关闭 再加一个参数 camelCase 加载 model 的时候统一处理

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/eggjs/egg/issues/341#issuecomment-280844523, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWA1eD5r1bEtYdDVUyu0jv8XCWW8q09ks5rdu0BgaJpZM4L73QU .

popomore avatar Feb 18 '17 13:02 popomore

@cycgit 可以直接 PR

atian25 avatar Feb 18 '17 14:02 atian25

egg-sequelize 中 sequelize 构造子除了预定义的options,其他如timezone等 无法从config 配置中读取,只能通过代码设置,希望能够改进下

yuzukwok avatar Feb 27 '17 10:02 yuzukwok

@jtyjty99999 @huacnlee 有空补下 guide doc

atian25 avatar Mar 13 '17 03:03 atian25

@cycgit @popomore camelCase 这个参数,最新的egg框架里有了吗,请问在哪里配置,旨在支撑
数据库一般下划线字段。应用代码都驼峰

shamoq avatar May 15 '17 02:05 shamoq

@cycgit @popomore camelCase 这个参数,最新的egg框架里有了吗,请问在哪里配置,旨在支撑 数据库一般下划线字段。应用代码都驼峰

同问

yeomanyang avatar Oct 09 '18 13:10 yeomanyang