Skip to main content

MaterializedViews

Trait MaterializedViews 

Source
pub trait MaterializedViews: Schema {
    // Required methods
    fn create_materialized_view(
        &self,
        name: &str,
        body: ViewBody<'_>,
        target_table: Option<&str>,
        if_not_exists: bool,
    ) -> Result<Statement>;
    fn drop_materialized_view(
        &self,
        name: &str,
        if_exists: bool,
    ) -> Result<Statement>;
}
Expand description

Materialized views.

PHP: Schema\Feature\MaterializedViews.

Required Methods§

Source

fn create_materialized_view( &self, name: &str, body: ViewBody<'_>, target_table: Option<&str>, if_not_exists: bool, ) -> Result<Statement>

CREATE MATERIALIZED VIEW [IF NOT EXISTS] name [TO target] AS body (PHP’s default for if_not_exists is true).

PHP: createMaterializedView().

Source

fn drop_materialized_view( &self, name: &str, if_exists: bool, ) -> Result<Statement>

Drops materialized view name (PHP’s default for if_exists is true).

PHP: dropMaterializedView().

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§