Type Alias sql_schema_describer::walkers::ViewWalker
source · pub type ViewWalker<'a> = Walker<'a, ViewId>;
Expand description
Traverse a view
Aliased Type§
struct ViewWalker<'a> {
pub id: ViewId,
pub schema: &'a SqlSchema,
}
Fields§
§id: ViewId
The identifier.
schema: &'a SqlSchema
The schema for which the identifier is valid.
Implementations§
source§impl<'a> ViewWalker<'a>
impl<'a> ViewWalker<'a>
sourcepub fn definition(self) -> Option<&'a str>
pub fn definition(self) -> Option<&'a str>
The SQL definition of the view
sourcepub fn columns(self) -> impl ExactSizeIterator<Item = ViewColumnWalker<'a>>
pub fn columns(self) -> impl ExactSizeIterator<Item = ViewColumnWalker<'a>>
Traverse the view’s columns.
sourcepub fn description(self) -> Option<&'a str>
pub fn description(self) -> Option<&'a str>
Description (comment) of the view.