Expand description
The query
module defines the core abstractions and components related to handling queries in the CQRS pattern.
Queries are used to retrieve data without modifying the state of the system. This module provides the Query
trait,
which represents a query, and the QueryHandler
trait, which defines the behavior for handling queries.
The QueryBus
is responsible for dispatching queries to their respective handlers. It utilizes the
QueryHandlerRegistry
from the registry module to manage and retrieve the appropriate handlers.
- Query: Represents a query in the system.
- QueryHandler: Trait for handling queries.
- QueryBus: Dispatches queries to the appropriate handlers.
§See Also
- QueryHandlerRegistry: Manages query handlers.
Structs§
- Query
Bus - The
QueryBus
is responsible for dispatching queries to their respective handlers.
Traits§
- Query
- The
Query
trait represents a query that retrieves data from the system. - Query
Handler - The
QueryHandler
trait represents a handler that processes a query.