wrap-sequelize
v1.0.39
Published
wrapper for sequelize
Downloads
167
Readme
- 生成where
1.1 generator.js->generate_compare_operator_base_on_query_or_body,把ctx.request.body/query中的字段;值,添加比较符
1.2 将1.1生成的结果放入generator.js->generate_sequelize_where,生成sequelize识别的where字句
1.3 如果是find,将1.2生成的结果放入generator.js->generateFindOption,生成的结果直接传递给find
否则,直接传递给其他操作