Add the Criteria/Specification Pattern to ease retrieving domain objects from repositories.
@dataclass
class Criteria:
filters: Filters
order: Order
offset: int
limit: int
It should be very useful create a Criteria transformer to use it with SQLAlchemy ORM.
We can take ideas from: https://github.com/CodelyTV/php-ddd-example/tree/master/src/Shared/Domain/Criteria
Add the Criteria/Specification Pattern to ease retrieving domain objects from repositories.
It should be very useful create a Criteria transformer to use it with SQLAlchemy ORM.
We can take ideas from: https://github.com/CodelyTV/php-ddd-example/tree/master/src/Shared/Domain/Criteria