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

Added support for supplying the fields to query in the select statement #58

Merged
merged 4 commits into from Nov 12, 2019
Merged

Conversation

ghost
Copy link

@ghost ghost commented Oct 17, 2019

Example usage: 'NewUserQuerySet(db).Select(UserDBSchema.Name, UserDBSchema.Email).All(&users)'
This will fetch only the 'name' and 'email' fields for all users,
instead of fetching all the fields in the table.

Example usage: 'NewUserQuerySet(db).Select(UserDBSchema.Name, UserDBSchema.Email).All(&users)'
This will fetch only the 'name' and 'email' fields for all users,
instead of fetching all the fields in the table.
@ghost ghost mentioned this pull request Oct 17, 2019
@coveralls
Copy link

coveralls commented Oct 17, 2019

Coverage Status

Coverage remained the same at 92.683% when pulling 3e3947a on ronnie-stratoscale:ronnie/select into 828af80 on jirfag:master.

@ghost
Copy link
Author

ghost commented Oct 28, 2019

@derElektrobesen When do you think you will be able to review this change?

Thanks

@derElektrobesen
Copy link
Collaborator

Sorry, but I can't approve the merge while GolangCI not satisfied =)

https://github.com/bombsimon/wsl/blob/master/doc/rules.md#expressions-should-not-be-cuddled-with-declarations-or-returns

@derElektrobesen
Copy link
Collaborator

Also modify README.md please: this feature could be interesting for everyone.

@derElektrobesen derElektrobesen merged commit 36aee76 into jirfag:master Nov 12, 2019
@ghost ghost deleted the ronnie/select branch November 12, 2019 13:07
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

Successfully merging this pull request may close these issues.

None yet

3 participants