Skip to main content

SqlToken

Type Alias SqlToken 

Source
pub type SqlToken = Token<SqlTokenType>;
Expand description

Represents a token in an SQL source file.

Aliased Type§

pub struct SqlToken {
    pub kind: SqlTokenType,
    pub span: Range<usize>,
}

Fields§

§kind: SqlTokenType

The kind/category of this kind (e.g., keyword, identifier, number)

§span: Range<usize>

The byte range in the source text that this kind occupies