Last active
September 7, 2020 13:15
-
-
Save finete/c49b0077efeb25fb1f0ba58d6c09b77b to your computer and use it in GitHub Desktop.
convert SqlAlchemy ORM query to string for Postgres RDBMS
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
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