I'm trying to convert this query to SQLAlchemy
SELECT count(*) FILTER(where condition) as cnt FROM table
Can someone give me minimal example of this? Can't find anything in the docs.
I'm trying to convert this query to SQLAlchemy
SELECT count(*) FILTER(where condition) as cnt FROM table
Can someone give me minimal example of this? Can't find anything in the docs.