Created
February 2, 2017 18:35
-
-
Save ivansabik/89f56acdc0144460c0d4196e11b6bf58 to your computer and use it in GitHub Desktop.
Print SQLAlchemy query_MySQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://nicolascadou.com/blog/2014/01/printing-actual-sqlalchemy-queries/ | |
from sqlalchemy.dialects import mysql; print str(query.statement.compile(dialect=mysql.dialect())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment