My code is currently
client = boto3.client('sdb')
query = 'SELECT * FROM `%s` WHERE "%s" = "%s"' % (domain, key, value)
response = client.select(SelectExpression = query)
Variable keyand valueis introduced by the user, what is the best way to avoid them in my previous code?
Edit: I am worried about how to avoid fields like we did in the past to prevent SQL injection, but now in SimpleDB
source
share