python - SQLAlchemy: How to change a MySQL server system variable using SQLAlchemy? -
i want set general_log , general_log_file variables using sqlalchemy, there way this? i've been googling around , can't find on topic.
you can execute raw sql query need (of course have appropriate rights in session). change variable run this:
# change variable name , values need connection.execute("set session query_cache_type = off")
Comments
Post a Comment