One of the functionality that I'm developing allows end-user to view their own database like a Database Browser. I would like to allow them to Select and Update freely but not Drop or Delete. I'm using SQLite in this project.
Currently, I did through the dummy method by checking the input beforehand.I made sure the input doesn't contain specifically 'delete ' and 'drop '.(Case-insensitive and a single space). SQLite doesn't support Truncate so I ignored that one. In this case, any record namely 'delete' or 'drop' can still be queried.
As per my understanding, Parameterization doesn't suit in this context. Please enlighten me if there's a way to workaround this. Is the current method sufficient?