ecodeclub / eorm

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

eorm: 改为依赖 value 包来获取值 #62

Closed flycash closed 2 years ago

flycash commented 2 years ago

在引入了 value 抽象之后,在整个 ORM 中都不应该再依赖反射来取值,或者设置值,而是依赖于内部的 value 包。因为在以后我们计划提供 unsafe 的实现

codecov[bot] commented 2 years ago

Codecov Report

Merging #62 (cd82bf2) into main (93736e7) will decrease coverage by 0.07%. The diff coverage is 84.61%.

@@            Coverage Diff             @@
##             main      #62      +/-   ##
==========================================
- Coverage   84.87%   84.80%   -0.08%     
==========================================
  Files          15       15              
  Lines         833      829       -4     
==========================================
- Hits          707      703       -4     
  Misses        107      107              
  Partials       19       19              
Impacted Files Coverage Δ
builder.go 77.35% <50.00%> (ø)
select.go 89.94% <75.00%> (ø)
update.go 82.90% <75.00%> (-0.43%) :arrow_down:
insert.go 89.55% <100.00%> (-0.16%) :arrow_down:
internal/value/reflect.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 93736e7...cd82bf2. Read the comment docs.