You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dictionary syntax treats all dictionary keys as part of an AND query. It should be possible to perform an OR query, checking for a match in one or more attributes. I propose this syntax:
This is possible because tuples can be dictionary keys.
Both variations of the OR syntax introduce a new problem: we currently apply the filter using filter_by, which takes string names. Using or_ (and and_) will require using filter, which requires Python expressions. This means a previously simple call:
This is now deprecated with ClassView ( #167), where the class can specify custom loaders. That will be far more efficient than load_models supporting additional syntaxes.
load_models
currently treats all parameters as an AND query when loading a model. It needs the ability to perform an OR query. Consider this:The dictionary syntax treats all dictionary keys as part of an AND query. It should be possible to perform an OR query, checking for a match in one or more attributes. I propose this syntax:
Supplying a list/tuple of dictionaries should signal an OR query.
The text was updated successfully, but these errors were encountered: