Skip to main content

SQLViewInfo

Trait SQLViewInfo 

Source
pub trait SQLViewInfo: SQLTableInfo + Any {
    // Required method
    fn definition_sql(&self) -> Cow<'static, str>;

    // Provided methods
    fn is_existing(&self) -> bool { ... }
    fn is_materialized(&self) -> bool { ... }
    fn with_no_data(&self) -> Option<bool> { ... }
    fn using_clause(&self) -> Option<&'static str> { ... }
    fn tablespace(&self) -> Option<&'static str> { ... }
}
Expand description

Metadata information about a database view.

Required Methods§

Source

fn definition_sql(&self) -> Cow<'static, str>

Returns the SQL definition of this view.

Provided Methods§

Source

fn is_existing(&self) -> bool

Returns true if this is an existing view in the database not managed by Drizzle.

Source

fn is_materialized(&self) -> bool

Returns true if this is a materialized view.

Source

fn with_no_data(&self) -> Option<bool>

Returns WITH NO DATA flag for materialized views.

Source

fn using_clause(&self) -> Option<&'static str>

Returns USING clause for materialized views.

Source

fn tablespace(&self) -> Option<&'static str>

Returns TABLESPACE for materialized views.

Trait Implementations§

Source§

impl Debug for dyn SQLViewInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§