go-rel / rel

:gem: Modern ORM for Golang - Testable, Extendable and Crafted Into a Clean and Elegant API
https://go-rel.github.io/
MIT License
744 stars 58 forks source link

Allow multimple selects #369

Open fairking opened 2 months ago

fairking commented 2 months ago

This change would allow for multiple selects.

For example:

var query = rel.Select("id", "title").From("pools")

if includeAvgScore {
    query.Select("avg_score AS score")
} else {
    query.Select("score")
}
codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (7ac79bf) to head (e9d4756). Report is 3 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #369 +/- ## ========================================== Coverage 100.00% 100.00% ========================================== Files 35 35 Lines 4085 3462 -623 ========================================== - Hits 4085 3462 -623 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.