google / sqlcommenter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feat(support): support JOOQ for Java/Kotlin/Scala

davinkevin opened this issue · comments

Hi,

First, I would thank you for open sourcing this library and releasing features around SQL performance and analysis, which is from my point of view, this is very important 🔥.

I would like to ask/propose SQLCommenter to support a really famous and important library of the JVM world named JOOQ.
As a Google Developer Expert on Google Cloud and Kotlin, I see a lot of interest on this library, to perform better queries and be able to optimize/analyse requests made to our SQL engine.

I know SQLCommenter is still young, but I open this issue to allow people to do a 👍 if they think this should be a good idea to support this too.

If you are open to PR, I'll be glad to propose something if you want.

Thanks

Some implementation hints can be found here: jOOQ/jOOQ#11335 (comment)

This is best solved using an ExecuteListener, see: https://www.jooq.org/doc/latest/manual/sql-execution/execute-listeners/