How to get SQL literals after parsing in mySQL Connector/J ?
I am looking for a way to get SQL tokens/literals (such as: SELECT, FROM, UPDATE ; , -- , etc.) from the SQLquery after parsing, but just before sending it to the database for execution.
I am looking in the source code of Connector/J driver, but all I found is ParseInfo class inside PreparedStatement, but can not find a way to get a list of SQL literals.
If you know a way on how to do it, or a place where I can modify Connector/J, please let me know.
I have found 'jsqlparser', but did not find a way to get sql tokens.