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

[Feature Request] Upgrade case statement to allow for multiple when clauses. #600

Open
margaretselzer opened this issue Sep 16, 2024 · 0 comments

Comments

@margaretselzer
Copy link
Contributor

It would be nice to have a case statement supporting multiple when clauses with an optional else. My guess is that it could be implemented similarly to how a select statement can be built up or the joins can be chained one after the other. The result could be a structure like:

case_begin()
    .when(condition_1).then(value_1)
    .when(condition_2).then(value_2)
   ...
    .else(value_else)
.case_end()

See also post by @rbock in #59 (comment)

@margaretselzer margaretselzer changed the title [Feature Request] Upgrade case statement to allow for multiple when clauses.. [Feature Request] Upgrade case statement to allow for multiple when clauses. Sep 16, 2024
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