python - Execute raw SQL after connect to database -
How can I execute raw SQL after connecting to the database? I need to run a script once I connect to DB.
UPD: The question is not how to run raw SQL.
Just go to the docs.
I think the second match on Google
edit view comments
If you see that MySQLdb (built-in layer) also Accepts an init_command option immediately after a connection is established. This is a feature of MySQLdb, and not so much of Django.
Comments
Post a Comment