engine = sqlalchemy.engine.create_engine('mysql://py:123@localhost/py', echo=True)
con = engine.connect()
res = con.execute("insert into user set name = %s", 'A')
How do I write this query to a (.sql) file (or how do I assign it to a variable)? I'd rather not do all the escaping myself.