I'm using guile-dbi/sqlite and I have code like this:
(dbi-query db-obj (string-append "SELECT * FROM users WHERE username = '"
username
"'"))
How can I escape username given from user to prevent sql injection?
I could validate username to only contain letters using [a-zA-Z]
but what about other languages that have non latin letters and names like O'Conor?