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

Support for including SQL queries from bundled files #5

Open
cmcgee-mac opened this issue Jan 29, 2021 · 0 comments
Open

Support for including SQL queries from bundled files #5

cmcgee-mac opened this issue Jan 29, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@cmcgee-mac
Copy link
Collaborator

In case a particular query is really large or difficult to read inside your Java code, it might make sense to include the query from a separate SQL file that can be edited using a SQL editor with the syntax highlighting among other capabilities. At runtime, provided that the file is bundled in the JAR, this SQL can be loaded using the class loader. The safety from SQL injections is intact since the SQL files are totally static and the loading of their contents encapsulated in NORM.

@cmcgee-mac cmcgee-mac added the enhancement New feature or request label Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant