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

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -