GoooQo v0.2.0 已经发布,OQM 技术的 Golang 实现
此版本更新内容包括:
文档上线:https://goooqo.docs.doyto.win/v/zh
特性:
- 支持子查询字段映射:
- Tag:
subquery
- Tag:
select
/from
- 从字段名称解析
- ANY
- ALL
- Tag:
子查询字段定义示例:
type UserQuery struct {
PageQuery
//...
ScoreLtAvg *UserQuery `subquery:"select avg(score) from User"`
ScoreLtAny *UserQuery `subquery:"SELECT score FROM User"`
ScoreLtAll *UserQuery `subquery:"select score from UserEntity"`
ScoreGtAvg *UserQuery `select:"avg(score)" from:"UserEntity"`
ScoreInScoreOfUser*UserQuery
ScoreGtAvgScoreOfUser *UserQuery
}
完整的更新日志: https://gitee.com/doyto/goooqo/compare/v0.1.4...v0.2.0
详情查看:https://gitee.com/doyto/goooqo/releases/v0.2.0