In sqlalchemy, I make the connection:
conn = engine.connect()
I found this will set autocommit = 0 in my mysqld log. Now I want to set autocom
You can use this:
from sqlalchemy.sql import text engine = create_engine(host, user, password, dbname) engine.execute(text(sql).execution_options(autocommit=True))