pub enum SqlToken {
Keyword(String),
Identifier(String),
StringLiteral(String),
NumberLiteral(String),
Operator(String),
Punctuation(char),
Comment(String),
}Expand description
SQL token type (for simplified AST analysis).
Variants§
Keyword(String)
Keyword (SELECT/FROM/WHERE etc.)
Identifier(String)
Identifier (table name / column name)
StringLiteral(String)
String literal
NumberLiteral(String)
Number literal
Operator(String)
Operator
Punctuation(char)
Punctuation (parentheses / comma / semicolon)
Comment(String)
Comment
Trait Implementations§
impl StructuralPartialEq for SqlToken
Auto Trait Implementations§
impl Freeze for SqlToken
impl RefUnwindSafe for SqlToken
impl Send for SqlToken
impl Sync for SqlToken
impl Unpin for SqlToken
impl UnsafeUnpin for SqlToken
impl UnwindSafe for SqlToken
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more