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>

source

pub fn name(self) -> &'a str

The name of the view

source

pub fn definition(self) -> Option<&'a str>

The SQL definition of the view

source

pub fn namespace(self) -> Option<&'a str>

The namespace of the view

source

pub fn columns(self) -> impl ExactSizeIterator<Item = ViewColumnWalker<'a>>

Traverse the view’s columns.

source

pub fn description(self) -> Option<&'a str>

Description (comment) of the view.