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

Created on 9 Feb 2017  ·  16Comments  ·  Source: eggjs/egg

参考内网egg-model:

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

Most helpful comment

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

All 16 comments

2个合并成一个吧

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

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

ok

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

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

@cycgit 你是想默认支持吗?

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

这个可以支持的,我原来做过
chenyancheng notifications@github.com于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
.

@cycgit 可以直接 PR

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

@jtyjty99999 @huacnlee 有空补下 guide doc

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

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

同问

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Yao-JSON picture Yao-JSON  ·  34Comments

popomore picture popomore  ·  70Comments

musicode picture musicode  ·  55Comments

popomore picture popomore  ·  38Comments

atian25 picture atian25  ·  68Comments