I want to generate querys but i wont be executing. Just showing the text query after everything has been escape. I cant figure out how to get the escape value. I searched the object browser for escape hoping to find a function but i didnt. I then had a longshot idea that this (string)new SQLiteParameter("@dummy", text).Value may work but its too longshot and it didnt work. So how do i get the escaped text?
I want to generate querys but i wont be executing. Just showing the text
Share
You’ll need to manually replace quotes and backslashes in your strings.
I’m not an expert in SQLite syntax, but the following should work:
However, you should use parameters whenever you possibly can.
In addition to being more secure against SQL injection, using parameters will also give you the benefit of query plan caching, making your queries run faster.