Skip to content
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

Usage of row scanner #1

Open
emilien-puget opened this issue Jan 16, 2024 · 1 comment
Open

Usage of row scanner #1

emilien-puget opened this issue Jan 16, 2024 · 1 comment

Comments

@emilien-puget
Copy link

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

@achille-roussel
Copy link
Owner

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.

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

No branches or pull requests

2 participants