pub enum SqlToken {
Keyword,
String,
Number,
Comment,
Operator,
Identifier,
Punctuation,
Whitespace,
Parameter,
}Expand description
SQL token types for syntax highlighting.
Variants§
Keyword
SQL keyword (SELECT, FROM, WHERE, etc.)
String
String literal (‘value’)
Number
Numeric literal (42, 3.14)
Comment
SQL comment (– comment or /* comment */)
Operator
SQL operator (=, <, >, AND, OR, etc.)
Identifier
Identifier (table name, column name)
Punctuation
Punctuation (, ; ( ))
Whitespace
Whitespace
Parameter
Parameter placeholder ($1, ?, :name)
Trait Implementations§
impl Copy for SqlToken
impl Eq for SqlToken
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 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