I\'m trying to insert values into a Postgres11 database with raw sqlalchemy text() queries. The following SQL query works correctly when I run it through psql-clien
text()
My question got answered on github.
The solution is to wrap the execute in a transaction context:
with engine.begin() as conn: conn.execute("whatever")