sqlrange icon indicating copy to clipboard operation
sqlrange copied to clipboard

Usage of row scanner

Open emilien-puget opened this issue 1 year ago • 1 comments

hello, i love what you did there, i wonder if the struct used in your example implement the scanner interface to avoid using reflect ?

emilien-puget avatar Jan 16 '24 12:01 emilien-puget

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.

achille-roussel avatar Jan 16 '24 16:01 achille-roussel