Skip to main content

Module refresh

Module refresh 

Source
Expand description

REFRESH MATERIALIZED VIEW query builder for PostgreSQL

This module provides a builder for constructing REFRESH MATERIALIZED VIEW statements.

§Examples

use drizzle_postgres::builder::refresh::RefreshMaterializedView;

// Basic refresh
let refresh = RefreshMaterializedView::new(&my_view);

// Concurrent refresh (allows reads during refresh)
let refresh = RefreshMaterializedView::new(&my_view).concurrently();

// Refresh without data (empties the view)
let refresh = RefreshMaterializedView::new(&my_view).with_no_data();

Structs§

RefreshConcurrently
Marker for the state after CONCURRENTLY is set
RefreshInitial
Marker for the initial state of RefreshMaterializedView
RefreshMaterializedView
Builder for REFRESH MATERIALIZED VIEW statements
RefreshWithNoData
Marker for the state after WITH NO DATA is set

Functions§

refresh_materialized_view
Creates a REFRESH MATERIALIZED VIEW statement for the given view