-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add RowsScanner interface #24
Comments
Hi @ajpetersons! Thanks for the idea! Sorry for taking so much time. What do you think? |
What I am proposing (in my mind) is to have something similar to |
All right, thanks for answering. I expressed my concerns in the comments in the PR. It looks to me that it may end up in a bigger refactoring. I'd keep it open for some time to collect opinions and votes, but I'd rather not merge it as it currently is. |
Currently it is impossible to fully unit test code that is using sqrl since
Query
method requires*sql.Rows
as return value. I am proposing to add RowsScanner interface that would allow*sql.Rows
to be replaced by another struct that implements required methods.As far as I can tell, RowsScanner could look something like this:
The text was updated successfully, but these errors were encountered: