We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To get better support for enums we should all support for when .order("column", Order::Asc) is used we generate a CASE
.order("column", Order::Asc)
enum UserState { Active, Inactive, Banned, }
This turns into:
ORDER BY CASE ID WHEN 'Active' THEN 0 WHEN 'Inactive' THEN 1 WHEN 'Banned' THEN 2 END
Nice to have
The text was updated successfully, but these errors were encountered:
GeekMasher
No branches or pull requests
What new feature are you looking for / expect?
To get better support for enums we should all support for when
.order("column", Order::Asc)
is used we generate a CASEThis turns into:
Sources
Expectations
Nice to have
The text was updated successfully, but these errors were encountered: