-
-
Save alex-ber/9958a57867be9f49cd8259a57417e92a to your computer and use it in GitHub Desktop.
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.sql import and_, or_, not_ | |
>>> print(and_( | |
... users.c.name.like('j%'), | |
... users.c.id == addresses.c.user_id, | |
... or_( | |
... addresses.c.email_address == '[email protected]', | |
... addresses.c.email_address == '[email protected]' | |
... ), | |
... not_(users.c.id > 5) | |
... ) | |
... ) | |
users.name LIKE :name_1 AND users.id = addresses.user_id AND | |
(addresses.email_address = :email_address_1 | |
OR addresses.email_address = :email_address_2) | |
AND users.id <= :id_1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment