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

Extra context of query file execution #951

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

Conversation

kremio
Copy link

@kremio kremio commented Jan 31, 2025

While pg-promise already provides the full query as it was sent to the DB in the context object that is provided to the error callback, with large or complex queries being able to get the path to the source SQL file and the values passed to it when running the query would be really helpful for debugging and monitoring purposes.

The proposed changes add the path to the query file and the values used to execute it to the EventContext.

@kremio kremio marked this pull request as ready for review January 31, 2025 09:50
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.

1 participant