sqlrange
sqlrange copied to clipboard
Usage of row scanner
hello, i love what you did there, i wonder if the struct used in your example implement the scanner interface to avoid using reflect ?
Hello @emilien-puget, thanks for reaching out!
This is not something I had considered, but it's an interesting idea.
Last I checked the Scanner interface was designed for individual column values, so it wouldn't work in this case, but I'll double check.
Nevertheless, this is a relevant suggestion, the package could offer a way to bypass reflection by having the row type implement an interface.