-
-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add Multi Row Support #263
Conversation
go versions 1.14 and below are unsupported as per https://golang.org/doc/devel/release#policy and hence the library does not support them either
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
@l3pp4rd could you review this? |
@asahasrabuddhe I can't wait 😊 |
[](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/DATA-DOG/go-sqlmock](https://github.com/DATA-DOG/go-sqlmock) | require | patch | `v1.5.0` -> `v1.5.1` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>DATA-DOG/go-sqlmock (github.com/DATA-DOG/go-sqlmock)</summary> ### [`v1.5.1`](https://github.com/DATA-DOG/go-sqlmock/releases/tag/v1.5.1) [Compare Source](https://github.com/DATA-DOG/go-sqlmock/compare/v1.5.0...v1.5.1) Release was tested & verified using [aws-sqk ](https://github.com/aws/aws-xray-sdk-go/pull/450) ##### What's Changed - Add go 1.15 in travis by [@​gold-kou](https://github.com/gold-kou) in [https://github.com/DATA-DOG/go-sqlmock/pull/234](https://github.com/DATA-DOG/go-sqlmock/pull/234) - Update code sample by [@​ashhadsheikh](https://github.com/ashhadsheikh) in [https://github.com/DATA-DOG/go-sqlmock/pull/244](https://github.com/DATA-DOG/go-sqlmock/pull/244) - Fix ExpectedExec Stringer implementation by [@​maguro](https://github.com/maguro) in [https://github.com/DATA-DOG/go-sqlmock/pull/249](https://github.com/DATA-DOG/go-sqlmock/pull/249) - Add Multi Row Support by [@​asahasrabuddhe](https://github.com/asahasrabuddhe) in [https://github.com/DATA-DOG/go-sqlmock/pull/263](https://github.com/DATA-DOG/go-sqlmock/pull/263) - Add Go 1.16 and 1.17 to Travis by [@​gliptak](https://github.com/gliptak) in [https://github.com/DATA-DOG/go-sqlmock/pull/279](https://github.com/DATA-DOG/go-sqlmock/pull/279) - fix package by [@​col3name](https://github.com/col3name) in [https://github.com/DATA-DOG/go-sqlmock/pull/284](https://github.com/DATA-DOG/go-sqlmock/pull/284) - \[Chore]: Add Issue Template by [@​Ghvstcode](https://github.com/Ghvstcode) in [https://github.com/DATA-DOG/go-sqlmock/pull/289](https://github.com/DATA-DOG/go-sqlmock/pull/289) - Fix args passed not exp by [@​IvoGoman](https://github.com/IvoGoman) in [https://github.com/DATA-DOG/go-sqlmock/pull/295](https://github.com/DATA-DOG/go-sqlmock/pull/295) - fixes csv parse errors being silently ignored by [@​IvoGoman](https://github.com/IvoGoman) in [https://github.com/DATA-DOG/go-sqlmock/pull/315](https://github.com/DATA-DOG/go-sqlmock/pull/315) - CSVColParser: correctly set nil values in Rows by [@​IvoGoman](https://github.com/IvoGoman) in [https://github.com/DATA-DOG/go-sqlmock/pull/318](https://github.com/DATA-DOG/go-sqlmock/pull/318) - Modify: existing panic in AddRow to give a hint to the issue by [@​co60ca](https://github.com/co60ca) in [https://github.com/DATA-DOG/go-sqlmock/pull/326](https://github.com/DATA-DOG/go-sqlmock/pull/326) ##### New Contributors - [@​gold-kou](https://github.com/gold-kou) made their first contribution in [https://github.com/DATA-DOG/go-sqlmock/pull/234](https://github.com/DATA-DOG/go-sqlmock/pull/234) - [@​ashhadsheikh](https://github.com/ashhadsheikh) made their first contribution in [https://github.com/DATA-DOG/go-sqlmock/pull/244](https://github.com/DATA-DOG/go-sqlmock/pull/244) - [@​maguro](https://github.com/maguro) made their first contribution in [https://github.com/DATA-DOG/go-sqlmock/pull/249](https://github.com/DATA-DOG/go-sqlmock/pull/249) - [@​asahasrabuddhe](https://github.com/asahasrabuddhe) made their first contribution in [https://github.com/DATA-DOG/go-sqlmock/pull/263](https://github.com/DATA-DOG/go-sqlmock/pull/263) - [@​col3name](https://github.com/col3name) made their first contribution in [https://github.com/DATA-DOG/go-sqlmock/pull/284](https://github.com/DATA-DOG/go-sqlmock/pull/284) - [@​Ghvstcode](https://github.com/Ghvstcode) made their first contribution in [https://github.com/DATA-DOG/go-sqlmock/pull/289](https://github.com/DATA-DOG/go-sqlmock/pull/289) - [@​IvoGoman](https://github.com/IvoGoman) made their first contribution in [https://github.com/DATA-DOG/go-sqlmock/pull/295](https://github.com/DATA-DOG/go-sqlmock/pull/295) - [@​co60ca](https://github.com/co60ca) made their first contribution in [https://github.com/DATA-DOG/go-sqlmock/pull/326](https://github.com/DATA-DOG/go-sqlmock/pull/326) **Full Changelog**: DATA-DOG/go-sqlmock@v1.5.0...v1.5.1 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44Ny4yIiwidXBkYXRlZEluVmVyIjoiMzcuODcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/DATA-DOG/go-sqlmock](https://github.com/DATA-DOG/go-sqlmock) | `v1.5.0` -> `v1.5.2` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>DATA-DOG/go-sqlmock (github.com/DATA-DOG/go-sqlmock)</summary> ### [`v1.5.2`](https://github.com/DATA-DOG/go-sqlmock/releases/tag/v1.5.2) [Compare Source](https://github.com/DATA-DOG/go-sqlmock/compare/v1.5.1...v1.5.2) #### What's Changed ##### Fixes breaking change from: [https://github.com/DATA-DOG/go-sqlmock/pull/295](https://github.com/DATA-DOG/go-sqlmock/pull/295) - fix: make no argument passed validation opt-in by [@​IvoGoman](https://github.com/IvoGoman) in [https://github.com/DATA-DOG/go-sqlmock/pull/329](https://github.com/DATA-DOG/go-sqlmock/pull/329) **Full Changelog**: DATA-DOG/go-sqlmock@v1.5.1...v1.5.2 ### [`v1.5.1`](https://github.com/DATA-DOG/go-sqlmock/releases/tag/v1.5.1) [Compare Source](https://github.com/DATA-DOG/go-sqlmock/compare/v1.5.0...v1.5.1) Release was tested & verified using [aws-sqk ](https://github.com/aws/aws-xray-sdk-go/pull/450) ##### What's Changed - Add go 1.15 in travis by [@​gold-kou](https://github.com/gold-kou) in [https://github.com/DATA-DOG/go-sqlmock/pull/234](https://github.com/DATA-DOG/go-sqlmock/pull/234) - Update code sample by [@​ashhadsheikh](https://github.com/ashhadsheikh) in [https://github.com/DATA-DOG/go-sqlmock/pull/244](https://github.com/DATA-DOG/go-sqlmock/pull/244) - Fix ExpectedExec Stringer implementation by [@​maguro](https://github.com/maguro) in [https://github.com/DATA-DOG/go-sqlmock/pull/249](https://github.com/DATA-DOG/go-sqlmock/pull/249) - Add Multi Row Support by [@​asahasrabuddhe](https://github.com/asahasrabuddhe) in [https://github.com/DATA-DOG/go-sqlmock/pull/263](https://github.com/DATA-DOG/go-sqlmock/pull/263) - Add Go 1.16 and 1.17 to Travis by [@​gliptak](https://github.com/gliptak) in [https://github.com/DATA-DOG/go-sqlmock/pull/279](https://github.com/DATA-DOG/go-sqlmock/pull/279) - fix package by [@​col3name](https://github.com/col3name) in [https://github.com/DATA-DOG/go-sqlmock/pull/284](https://github.com/DATA-DOG/go-sqlmock/pull/284) - \[Chore]: Add Issue Template by [@​Ghvstcode](https://github.com/Ghvstcode) in [https://github.com/DATA-DOG/go-sqlmock/pull/289](https://github.com/DATA-DOG/go-sqlmock/pull/289) - Fix args passed not exp by [@​IvoGoman](https://github.com/IvoGoman) in [https://github.com/DATA-DOG/go-sqlmock/pull/295](https://github.com/DATA-DOG/go-sqlmock/pull/295) - fixes csv parse errors being silently ignored by [@​IvoGoman](https://github.com/IvoGoman) in [https://github.com/DATA-DOG/go-sqlmock/pull/315](https://github.com/DATA-DOG/go-sqlmock/pull/315) - CSVColParser: correctly set nil values in Rows by [@​IvoGoman](https://github.com/IvoGoman) in [https://github.com/DATA-DOG/go-sqlmock/pull/318](https://github.com/DATA-DOG/go-sqlmock/pull/318) - Modify: existing panic in AddRow to give a hint to the issue by [@​co60ca](https://github.com/co60ca) in [https://github.com/DATA-DOG/go-sqlmock/pull/326](https://github.com/DATA-DOG/go-sqlmock/pull/326) ##### New Contributors - [@​gold-kou](https://github.com/gold-kou) made their first contribution in [https://github.com/DATA-DOG/go-sqlmock/pull/234](https://github.com/DATA-DOG/go-sqlmock/pull/234) - [@​ashhadsheikh](https://github.com/ashhadsheikh) made their first contribution in [https://github.com/DATA-DOG/go-sqlmock/pull/244](https://github.com/DATA-DOG/go-sqlmock/pull/244) - [@​maguro](https://github.com/maguro) made their first contribution in [https://github.com/DATA-DOG/go-sqlmock/pull/249](https://github.com/DATA-DOG/go-sqlmock/pull/249) - [@​asahasrabuddhe](https://github.com/asahasrabuddhe) made their first contribution in [https://github.com/DATA-DOG/go-sqlmock/pull/263](https://github.com/DATA-DOG/go-sqlmock/pull/263) - [@​col3name](https://github.com/col3name) made their first contribution in [https://github.com/DATA-DOG/go-sqlmock/pull/284](https://github.com/DATA-DOG/go-sqlmock/pull/284) - [@​Ghvstcode](https://github.com/Ghvstcode) made their first contribution in [https://github.com/DATA-DOG/go-sqlmock/pull/289](https://github.com/DATA-DOG/go-sqlmock/pull/289) - [@​IvoGoman](https://github.com/IvoGoman) made their first contribution in [https://github.com/DATA-DOG/go-sqlmock/pull/295](https://github.com/DATA-DOG/go-sqlmock/pull/295) - [@​co60ca](https://github.com/co60ca) made their first contribution in [https://github.com/DATA-DOG/go-sqlmock/pull/326](https://github.com/DATA-DOG/go-sqlmock/pull/326) **Full Changelog**: DATA-DOG/go-sqlmock@v1.5.0...v1.5.1 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/PingCAP-QE/ee-apps). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44Ny4yIiwidXBkYXRlZEluVmVyIjoiMzcuMjAwLjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Closes #135
This PR adds the
AddRows
function to the API which will allow users to add multiple rows at once instead of callingAddRow
multiple times.