Skip to content

ResultSet interface to simplify mocking and testing #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 19, 2020

Conversation

jorgebay
Copy link
Contributor

Replaced ResultIterator with ResultSet and separated the result from the error. This simplifies mocking and testing, specially when thinking about testing resolver behavior.

Also, naming conventions is factored out of the package db. As a downside, the row is first created as a map using the column name, that later is adapted as a different map based on the field name (strcase.ToLowerCamel() for now), but I think the performance impact should be negligible.

@jorgebay jorgebay requested a review from mpenick March 19, 2020 13:13
@jorgebay jorgebay merged commit 66052a3 into prototype Mar 19, 2020
@jorgebay jorgebay deleted the result-interface branch March 19, 2020 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants