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

Allow query sql to be defined in a file #188

Open
toddwh50 opened this issue Feb 13, 2024 · 0 comments
Open

Allow query sql to be defined in a file #188

toddwh50 opened this issue Feb 13, 2024 · 0 comments

Comments

@toddwh50
Copy link

Is your feature request related to a problem? Please describe.
Many of my queries are long and complex, making the config.yml very long. Since I don't have permission to add views or stored procedures to the target database, I cannot shorten the sql statement that goes into the config.

Describe the solution you'd like
It would be helpful to allow a query to reference a filename containing the sql for the query instead of having to put the entire sql within the YAML.

Describe alternatives you've considered
An alternative might be to implement and "!include" directive in the yaml parser that could be used to include files containing the SQL.

Additional context
None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant