pub struct GenericQueryRepository<V, A> where
V: Query<A>,
A: Aggregate, { /* fields omitted */ }
Expand description
This provides a simple query repository that can be used both to return deserialized
views and to act as a query processor.
Creates a new GenericQueryRepository
that will store its’ views in the table named
identically to the query_name
value provided. This table should be created by the user
previously (see /db/init.sql
).
Since inbound views cannot
Returns the originally configured view name.
Used to apply committed events to a view.
Loads and deserializes a view based on the view id.
Events will be dispatched here immediately after being committed for the downstream queries
to be updated. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,