-
Notifications
You must be signed in to change notification settings - Fork 92
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
jdsl selectFrom function #776
Comments
Hi @kihwankim. Thanks for the suggestion! I'm hesitant to add the selectFrom function to Jdsl because it might lead to misunderstandings about the purpose of the library. Jdsl is designed to closely reflect the target language, and adding custom expressions might make users think we're abstracting that language too much. Ideally, users should have the freedom to create their own Custom DSLs that fit their personal style. Also, Jdsl and QueryDSL have different approaches. In QueryDSL, you can chain methods after selectFrom to add joins, but this isn't possible in Jdsl. Using variable arguments in selectFrom seems to enforce a specific way of using it, which can be confusing. For example, it's unclear whether joins are included in what selectFrom returns just by looking at the method. This confusion arises because selectFrom is a unique construct of the library, not a standard method. This could lead us to respond to various user requests, such as supporting selectFrom().join() or allowing multiple where clauses, which can complicate decision-making. However, if many users want selectFrom, I'm open to considering it, provided we have a clear vision for the future. Otherwise, the DSL might become too complex to enhance later on. I think it would be worth discussing further if this issue gets about 20 👍, which is about 3% of our current stars. |
@shouwn Thank you! --- korean 감사합니다! (개인적인 의견이니 많은 사용자들의 selectFrom 함수를 필요로 하면 그 때 답글 남겨주세요!) |
This is a personal opinion! I think it’s a reasonable decision to implement a feature once an issue receives 20 👍 reactions, especially from the perspective of managing open source projects. However, I believe that even though Kotlin JDSL is not actively maintained as an open source project, it is used directly by a relatively larger number of people. I’m not sure if this matter has been brought up in the Discord community, but personally, I feel that information dissemination is somewhat lacking. I think it would be good to spread the word more broadly about the requirement for 20 👍 reactions to check whether the feature will be implemented or not. Thank you! |
@esperar As you said, it would be good to make an announcement on Discord or something, since this is a survey. Thank you for the good feedback. I'll try to make an announcement on Discord sometime next week. |
@esperar Sorry it took so long. I left a post on Discord to ask for feedback on this issue. |
Backgrounds
queryDSL
has selectFrom function and users migrating from QueryDSL to Kotlin-JDSL are forced to use theselect()
from()
functions or develop anselectFrom
extension function and useRequirements
Example
The text was updated successfully, but these errors were encountered: