In this PR, DataBaseModelCondition and DataBaseModelAttribute is created to improved annotation with conditions and to store / store values associated with query conditions needed for query caching. DataBaseModelAttribute is used to easily reference sqlalchemy models associated with model attributes, also provide an interface for storing values associated with sqlalchemy conditions, and enabling attribute based Conditionals in filters. At startup, or post migration, DataBaseModels now have attributes with names matching associated fields used for filter condition. Added new method, allowing for grouping of conditionals which do not ALL need to be True. data attributes now have a .matches() method which allows for IN [value1, value2, value3] querries
Description
In this PR,
DataBaseModelCondition
andDataBaseModelAttribute
is created to improved annotation with conditions and to store / store values associated with query conditions needed for query caching.DataBaseModelAttribute
is used to easily reference sqlalchemy models associated with model attributes, also provide an interface for storing values associated with sqlalchemy conditions, and enabling attribute based Conditionals in filters. At startup, or post migration, DataBaseModels now have attributes with names matching associated fields used for filter condition. Added new method, allowing for grouping of conditionals which do not ALL need to be True. data attributes now have a .matches() method which allows for IN [value1, value2, value3] querriesExamples