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 pre exec hook #6070

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add pre exec hook #6070

wants to merge 1 commit into from

Conversation

ccyphers
Copy link

@ccyphers ccyphers commented May 7, 2024

I see there's a postProcessResponse hook but no capabilities for pre SQL execution actions. This PR allows the user to define preExecHook in the config where the value of preExecHook is a function that will be executed before the SQL is executed. The callback function executed has an option, continue that controls whether or not to continue the flow and execute the final SQL. There are cases where the callback function would want to set continue to false as it might be short circuiting in use cases such as cache HITS from other sources.

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

1 participant