Created
November 5, 2014 11:23
-
-
Save enagorny/53afd22ef4cf0a8d479f to your computer and use it in GitHub Desktop.
display final sqlalchemy generated query
This file contains hidden or 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
# To display final query with also arguments. | |
from sqlalchemy.dialects import postgresql | |
print(query.statement.compile(dialect=postgresql.dialect(), compile_kwargs={"literal_binds": True})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment