pub enum SqlToken {
Keyword(String),
Identifier(String),
StringLiteral(String),
NumberLiteral(String),
Operator(String),
Punctuation(char),
Comment(String),
}Expand description
SQL 令牌类型(简化 AST 分析用)。
Variants§
Keyword(String)
关键字(SELECT/FROM/WHERE 等)
Identifier(String)
标识符(表名/列名)
StringLiteral(String)
字符串字面量
NumberLiteral(String)
数字字面量
Operator(String)
运算符
Punctuation(char)
标点(括号/逗号/分号)
Comment(String)
注释
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