I'm unfamiliar with how injection attacks work. Will using f-strings in .execute() make me vulnerable to injection, if I only request data (not update/insert)?
Similarly, let's say I'm trying to edit a column. How can I put in my own variables through .execute() without an f-string?
i.e.
new_date = '30/10/2022'
my_database.execute(f'UPDATE people SET birthday={new_date} WHERE name="Odin"')
What would be the best way to update the data?
Also, how do I tell if a database has been corrupted?
Edit: I should add my own understanding of 'vulnerability.' The user could input their own SQL commands into new_date so that the execute will input a different command.