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

How to see the sql that will be sent to the db? #65

Open
nilopaim opened this issue Aug 7, 2018 · 4 comments
Open

How to see the sql that will be sent to the db? #65

nilopaim opened this issue Aug 7, 2018 · 4 comments

Comments

@nilopaim
Copy link

nilopaim commented Aug 7, 2018

I would like to see the sql commend that will be sent to the db with the parameters already injected.

Are there some easy way?

Thanks.

@zsoltherpai
Copy link
Owner

zsoltherpai commented Aug 8, 2018 via email

@nilopaim
Copy link
Author

nilopaim commented Aug 8, 2018

Yes, that's what I did.

The sad part is that the sql command does not shows the parameters injected. It would be nice to have this feature, I think. That's the kind of thing that helps during the development.

Thanks, and congratulations for your work, I use fluent-jdbc every day.

@tonowie
Copy link

tonowie commented Oct 27, 2020

wanted to raise my own issue but this is pretty much the same thing so just comment here

For purposes of automated logging it would be great if AfterQueryListener received information also about the query parameters because those are important context of query execution. ExecutionDetails should provide enough information so that listener has all the information that is commonly needed for query logging. I am not sure whether this was left out on purpose or it is omission.

I can contribute to the project if it helps to make this happen in timely fashion :)

@tonowie
Copy link

tonowie commented Nov 23, 2020

created pull request #86 with suggestion of how to change the API

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

No branches or pull requests

3 participants