yannbriancon / spring-hibernate-query-utils

Library giving tools to detect N+1 queries and count the queries generated with Spring and Hibernate
MIT License
135 stars 15 forks source link

Feature Request: Filter sql query for count #14

Open samuelstein opened 4 years ago

samuelstein commented 4 years ago

would be nice if the query counter could be configured to filter only specific types of sql statements, like INSERT or UPDATE or SELECT.

yannbriancon commented 4 years ago

Hello @samuelstein

I agree, it is a feature I had in mind but didn't have the time to work on it. I think it is an easy PR that could be done by using the prepareStatement interceptor method.

Feel free to try it out!

samuelstein commented 4 years ago

okay, i will give it a try