I have a sql where that I have formatted with new lines and multiple tabs and spaces. I have this for example, but indented multiple times:
q = f'''
UPDATE
`table`
SET
`col1` = 1
WHERE
`another col` = 2
AND
`final col` = 3
'''
How can I convert the query into a single line?