I am working on a project where I will get a random SQL query that should just load into a webpage with the data. Fairly simple. I'm using MyBatis to do so. So the SQL query I load into my program, I want it to only accept Select statements. Basically, since I only want it to show data, I do not want the person that dynamically gives SQL queries, to be able to update, insert, delete, drop or create anything at all. Is there any way I can tell MyBatis not to accept this?
If I lack any form of information, don't hesitate to yell at me :)
Best regards
Mikkel