I'm trying to add a persistent SQL where clause in SQLalchimy. Basically I have a table containing a specific field, and I want all my request to add a where clause, so this field matches a clause.
For instance, if my request is
session.query( MyTable ).all()
I'd like the generated request to be as such :
SELECT * FROM Table WHERE specific_field = 'some_value';
Is there a way of doing this without adding a filter to each request ?
Thanks in advance.