Struct cqrs_es2_sql::GenericQueryRepository[][src]

pub struct GenericQueryRepository<V, A> where
    V: IQuery<A>,
    A: IAggregate
{ /* 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.

Implementations

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.

Trait Implementations

Events will be dispatched here immediately after being committed for the downstream queries to be updated. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.