pub trait SQLViewInfo: SQLTableInfo + Any {
// Required method
fn definition_sql(&self) -> Cow<'static, str>;
// Provided methods
fn schema(&self) -> &'static str { ... }
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> { ... }
fn as_view_info(&self) -> &dyn SQLViewInfo
where Self: Sized { ... }
}Expand description
Metadata information about a database view.
Required Methods§
Sourcefn definition_sql(&self) -> Cow<'static, str>
fn definition_sql(&self) -> Cow<'static, str>
Returns the SQL definition of this view.
Provided Methods§
Sourcefn is_existing(&self) -> bool
fn is_existing(&self) -> bool
Returns true if this is an existing view in the database not managed by Drizzle.
Sourcefn is_materialized(&self) -> bool
fn is_materialized(&self) -> bool
Returns true if this is a materialized view.
Sourcefn with_no_data(&self) -> Option<bool>
fn with_no_data(&self) -> Option<bool>
Returns WITH NO DATA flag for materialized views.
Sourcefn using_clause(&self) -> Option<&'static str>
fn using_clause(&self) -> Option<&'static str>
Returns USING clause for materialized views.
Sourcefn tablespace(&self) -> Option<&'static str>
fn tablespace(&self) -> Option<&'static str>
Returns TABLESPACE for materialized views.
Sourcefn as_view_info(&self) -> &dyn SQLViewInfowhere
Self: Sized,
fn as_view_info(&self) -> &dyn SQLViewInfowhere
Self: Sized,
Erased access to the view info.