Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
proposal: database/sql: add interface for Scan method on Row and Rows #33786
Every time that I start a new project that uses
I feel like this interface should be present in the
If I was to guess, you are manually hydrating each struct item through a method. That's an interesting method.
I assume you are doing something like this:
Can you confirm?
A full example would look something like this
Thank you for the use case.
I could easily see an interface defined as:
But this isn't to say your version would be worse or better, but I would perceive the value is more application dependent. So if you choose to marshal data in this way, make a common package that defines it for you.
I think a RowScanner would have some value, but I don't think it would pull its own weight.