pub type IndexColumnWalker<'a> = Walker<'a, IndexColumnId>;
Expand description

Traverse a specific column inside an index.

Aliased Type§

struct IndexColumnWalker<'a> {
    pub id: IndexColumnId,
    pub schema: &'a SqlSchema,
}

Fields§

§id: IndexColumnId

The identifier.

§schema: &'a SqlSchema

The schema for which the identifier is valid.

Implementations§

source§

impl<'a> IndexColumnWalker<'a>

source

pub fn get(self) -> &'a IndexColumn

Get the index column data.

source

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

The name of the column.

source

pub fn length(self) -> Option<u32>

The length limit of the (text) column. Matters on MySQL only.

source

pub fn sort_order(self) -> Option<SQLSortOrder>

The BTree ordering.

source

pub fn table(self) -> TableWalker<'a>

The table where the column is located.

source

pub fn index(self) -> IndexWalker<'a>

The index of the column.

source

pub fn as_column(self) -> TableColumnWalker<'a>

Convert to a normal column walker, losing the possible index arguments.