Skip to content

Instantly share code, notes, and snippets.

@enagorny
Created November 5, 2014 11:23
Show Gist options
  • Save enagorny/53afd22ef4cf0a8d479f to your computer and use it in GitHub Desktop.
Save enagorny/53afd22ef4cf0a8d479f to your computer and use it in GitHub Desktop.
display final sqlalchemy generated query
# 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