georgysavva / scany

Library for scanning data from a database into Go structs and more
MIT License
1.24k stars 67 forks source link

Exception for scannable type #74

Closed georgysavva closed 2 years ago

georgysavva commented 2 years ago

This PR adds an exception for scannable types to be treated as primitive types rather than structs or maps. Fixes: https://github.com/georgysavva/scany/issues/63, https://github.com/georgysavva/scany/issues/33, https://github.com/georgysavva/scany/issues/73.

codecov[bot] commented 2 years ago

Codecov Report

Merging #74 (da6b6f7) into master (353f326) will decrease coverage by 0.68%. The diff coverage is 86.49%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #74      +/-   ##
==========================================
- Coverage   87.59%   86.90%   -0.68%     
==========================================
  Files           5        5              
  Lines         282      336      +54     
==========================================
+ Hits          247      292      +45     
- Misses         29       33       +4     
- Partials        6       11       +5     
Flag Coverage Δ
unittests 86.90% <86.49%> (-0.68%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
sqlscan/sqlscan.go 76.74% <75.00%> (-1.83%) :arrow_down:
pgxscan/pgxscan.go 80.77% <77.78%> (-2.09%) :arrow_down:
dbscan/dbscan.go 81.58% <91.30%> (+3.32%) :arrow_up:
dbscan/rowscanner.go 96.25% <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 353f326...da6b6f7. Read the comment docs.