georgysavva / scany

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

pgx.ErrNoRows and sql.ErrNoRows #14

Closed jfyne closed 4 years ago

jfyne commented 4 years ago

From the discussion in #13 this returns pgx.ErrNoRows and sql.ErrNoRows for both ScanOne and Get.

In addition a check in the NotFound function is added to maintain backwards compatibility with any existing code.

codecov[bot] commented 4 years ago

Codecov Report

Merging #14 into master will increase coverage by 0.06%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #14      +/-   ##
==========================================
+ Coverage   95.77%   95.83%   +0.06%     
==========================================
  Files           4        4              
  Lines         284      288       +4     
==========================================
+ Hits          272      276       +4     
  Misses          6        6              
  Partials        6        6              
jfyne commented 4 years ago

My pleasure, thanks for the library!