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

Select tables #109

Open
benmerckx opened this issue May 20, 2020 · 0 comments
Open

Select tables #109

benmerckx opened this issue May 20, 2020 · 0 comments

Comments

@benmerckx
Copy link
Member

In a query with some left joins I'd like to be able to pick which tables to nest in the response (in this case the left ones). While I can manually pick every field in the select macro it would be be easier to be able to specify something like this (in my specific case in combination with #108 it would allow me to select distinct results of db.table I believe):

db.table.leftJoin(db.table2).on(...).select({table: db.table}) => Selected<_, _, {table: Table}, _>
benmerckx added a commit to benmerckx/tink_sql that referenced this issue May 20, 2020
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

1 participant