Struct postgres_es::PostgresViewRepository [−][src]
pub struct PostgresViewRepository<V, A> { /* fields omitted */ }
Expand description
A postgres backed query repository for use in backing a GenericQuery
.
Implementations
Creates a new PostgresViewRepository
that will store serialized views in a Postgres table named
identically to the query_name
value provided. This table should be created by the user
before using this query repository (see /db/init.sql
sql initialization file).
Trait Implementations
impl<V, A> ViewRepository<V, A> for PostgresViewRepository<V, A> where
V: View<A>,
A: Aggregate,
impl<V, A> ViewRepository<V, A> for PostgresViewRepository<V, A> where
V: View<A>,
A: Aggregate,
Returns the current view instance.
fn update_view<'life0, 'async_trait>(
&'life0 self,
view: V,
context: QueryContext
) -> Pin<Box<dyn Future<Output = Result<(), PersistenceError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn update_view<'life0, 'async_trait>(
&'life0 self,
view: V,
context: QueryContext
) -> Pin<Box<dyn Future<Output = Result<(), PersistenceError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Updates the view instance.