Thank you very much. I tried that and it is working perfectly for me.
On Wednesday, June 17, 2020 at 3:12:04 AM UTC+5:30, Jonathan Vanasco wrote:
>
> If this just needs this to be rendered for PostgreSQL, you can use the
> `func` generator:
>
>
>
If this just needs this to be rendered for PostgreSQL, you can use the
`func` generator:
https://docs.sqlalchemy.org/en/13/core/sqlelement.html#sqlalchemy.sql.expression.func
from sqlalchemy.sql.expression import func
query = session.query(Foo).filter(func.bit_or(Foo.cola, Foo.colb)...