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

Add Language annotations for more pleasant SQL editing #4602

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

MariusVolkhart
Copy link
Contributor

Using the execute and executeQuery methods isn't how SQLDelight is meant to be used, but they are an important escape hatch or when the compiler/dialect hasn't yet implemented a needed feature. Marking the parameters as SQL makes for a better editing experience in Intellij.

The required annotations are already on the classpath for these drivers.

Using the execute and executeQuery methods isn't how SQLDelight is meant to be used, but they are an important escape hatch or when the compiler/dialect hasn't yet implemented a needed feature. Marking the parameters as SQL makes for a better editing experience in Intellij.

The required annotations are already on the classpath for these drivers.
@dellisd
Copy link
Collaborator

dellisd commented Sep 6, 2023

I think this is something that would be better to implement through the IntelliJ plugin so that it could be applied to all driver implementations, not just the JDBC/R2DBC ones.

@hfhbd
Copy link
Collaborator

hfhbd commented Oct 20, 2023

I think, we should do both to use the feature/annotation without the sqldelight plugin too.

@hfhbd hfhbd merged commit d57fa4c into cashapp:master Oct 20, 2023
7 checks passed
@MariusVolkhart MariusVolkhart deleted the mv/language branch October 24, 2023 14:32
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

Successfully merging this pull request may close these issues.

None yet

4 participants