Type Alias sql_schema_describer::walkers::IndexColumnWalker
source · 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>
impl<'a> IndexColumnWalker<'a>
sourcepub fn get(self) -> &'a IndexColumn
pub fn get(self) -> &'a IndexColumn
Get the index column data.
sourcepub fn length(self) -> Option<u32>
pub fn length(self) -> Option<u32>
The length limit of the (text) column. Matters on MySQL only.
sourcepub fn sort_order(self) -> Option<SQLSortOrder>
pub fn sort_order(self) -> Option<SQLSortOrder>
The BTree ordering.
sourcepub fn table(self) -> TableWalker<'a>
pub fn table(self) -> TableWalker<'a>
The table where the column is located.
sourcepub fn index(self) -> IndexWalker<'a>
pub fn index(self) -> IndexWalker<'a>
The index of the column.
sourcepub fn as_column(self) -> TableColumnWalker<'a>
pub fn as_column(self) -> TableColumnWalker<'a>
Convert to a normal column walker, losing the possible index arguments.