ecodeclub / eorm

简单 ORM 框架
Apache License 2.0
194 stars 64 forks source link

join查询 #122

Closed liangzai202204 closed 1 year ago

flycash commented 1 year ago

集成测试为join, left join 和 right 各写一个,然后用 t.C 来指定列。

codecov[bot] commented 1 year ago

Codecov Report

Merging #122 (6e39929) into dev (8fe30c3) will decrease coverage by 1.00%. The diff coverage is 77.85%.

:exclamation: Current head 6e39929 differs from pull request most recent head b862675. Consider uploading reports for the commit b862675 to get more accurate results

@@            Coverage Diff             @@
##              dev     #122      +/-   ##
==========================================
- Coverage   83.97%   82.96%   -1.01%     
==========================================
  Files          22       23       +1     
  Lines        1373     1644     +271     
==========================================
+ Hits         1153     1364     +211     
- Misses        189      237      +48     
- Partials       31       43      +12     
Impacted Files Coverage Δ
internal/model/model.go 87.61% <0.00%> (-2.58%) :arrow_down:
internal/test/types.go 27.27% <ø> (ø)
builder.go 75.79% <45.23%> (-7.26%) :arrow_down:
select.go 85.07% <76.00%> (-4.83%) :arrow_down:
table.go 93.16% <93.16%> (ø)
aggregate.go 96.38% <100.00%> (+0.04%) :arrow_up:
column.go 89.28% <100.00%> (+0.09%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

liangzai202204 commented 1 year ago

集成测试\internal\integration\ select_test.go,TestMySQL8SelectJoin

liangzai202204 commented 1 year ago

mysql初始化.\script\mysql\init.sql新增建表语句

flycash commented 1 year ago
flycash commented 1 year ago

我先合并了,我自己动手微调一下