DATA-DOG / go-sqlmock

Sql mock driver for golang to test database interactions
Other
6.16k stars 407 forks source link

Add Multi Row Support #263

Closed asahasrabuddhe closed 3 years ago

asahasrabuddhe commented 3 years ago

Closes #135

This PR adds the AddRows function to the API which will allow users to add multiple rows at once instead of calling AddRow multiple times.

codecov-commenter commented 3 years ago

Codecov Report

Merging #263 (4d55f93) into master (07eed2a) will increase coverage by 0.01%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #263      +/-   ##
==========================================
+ Coverage   93.98%   93.99%   +0.01%     
==========================================
  Files          19       19              
  Lines         814      816       +2     
==========================================
+ Hits          765      767       +2     
  Misses         34       34              
  Partials       15       15              
Impacted Files Coverage Δ
rows.go 89.04% <100.00%> (+0.30%) :arrow_up:

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 07eed2a...4d55f93. Read the comment docs.

asahasrabuddhe commented 3 years ago

@l3pp4rd could you review this?

yanskun commented 1 year ago

@asahasrabuddhe In 1.5.0, AddRows is not available. plz release it!

I can't wait 😊