How to change sql and parameters before execute?

Answered

My plugin has a requirement that I parse special comments in sql like this:

-- #if ...

-- #fi

When I inject sql language in java literals, how do I add my own logic before actually executing, I need to modify parameters and ultimately execute sql, which class do I need to implement or inherit?

0
2 comments

Hi!

Unfortunately, there is no way to do what you want - to add custom logic to the query and, based on it, change the parameters and the final text of the query.

1

Please sign in to leave a comment.