execute several separate SQLAlchemy Core statements simultaneously?
Verfasst: Sonntag 25. September 2022, 09:55
I'm executing a number of separate statements using SQLAlchemy Core. The assertions are unconnected and to different tables. I am unable to utilise the usual table as a result. multiple dictionaries of parameters supplied to insert(). I'm doing it right now:
Can I run them once rather than having to go back and forth to the database twice? I use Python 2.7.11 and MySQL 5.7.
Code: Alles auswählen
sql_conn.execute(query1)
sql_conn.execute(query2)