Adding distinct_on
support for MySQL
#2746
DanielBatesJ
started this conversation in
Ideas
Replies: 1 comment
-
Filling a feature request first is a good way to get some feedback on the idea before doing actual work. That's at least for me the preferred way to handle feature requests 👍 Before starting to think about a potential implementation here are a few questions that we should answer first:
If those questions are answered we can talk about the implementation. In fact if there is support in MySQL for the corresponding clause, it should be quite easy to add support to diesel. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Supporting
distinct_on
for MySQL database would be a useful feature to have. I'm not sure what the limitations are but I'm guessing it's related to a difference in syntax from PosgreSQL to MySQL.I did a quick check for any issues or requests mentioning this and didn't find anything, are there any PRs that look into this? And if not any advise for a beginner to contribute one?
Secondarily, the docs do not mention that the feature is only available on PosgreSQL, which lead to some confusion when writing my queries. Looking at the source, however, the function is definitely labeled as a PosgreSQL specific feature. Is this something I should write up as a formal issue?
Beta Was this translation helpful? Give feedback.
All reactions