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

Generate helper for scanning from row #168

Open
AlekSi opened this issue Aug 7, 2018 · 0 comments
Open

Generate helper for scanning from row #168

AlekSi opened this issue Aug 7, 2018 · 0 comments
Labels
Milestone

Comments

@AlekSi
Copy link
Member

AlekSi commented Aug 7, 2018

Generate method

func (s *Struct) Scan(row *sql.Row) error { }

It should use column names.

How to deal with extra or missing columns is an open question. Return special error type? Accept a slice of column names as the last argument?

@AlekSi AlekSi added the feature label Aug 7, 2018
@AlekSi AlekSi added this to the v1.4.0 milestone Aug 7, 2018
@AlekSi AlekSi modified the milestones: v1.4.0, v1.5.0 Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant