georgysavva / scany

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

Support nested structs #21

Closed georgysavva closed 3 years ago

georgysavva commented 3 years ago

As discussed in https://github.com/georgysavva/scany/issues/17 this adds support for nested structs to mirror the sqlx feature. Also as a side change now it's allowed to embed unexported structs

codecov[bot] commented 3 years ago

Codecov Report

Merging #21 into master will increase coverage by 0.02%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #21      +/-   ##
==========================================
+ Coverage   95.04%   95.06%   +0.02%     
==========================================
  Files           4        4              
  Lines         242      243       +1     
==========================================
+ Hits          230      231       +1     
  Misses          6        6              
  Partials        6        6