sqlparse/
tokens.rs

1
2#[derive(PartialEq, Debug, Clone)]
3pub enum TokenType {
4    Text,
5    Whitespace,
6    Newline,
7    Error,
8    Other,
9    // Common token types for source code
10    Keyword,
11    KeywordRaw, // need check manually
12    KeywordDDL,
13    KeywordDML,   
14    KeywordCTE,
15    KeywordTZCast,
16    KeywordOrder, // asc desc
17    Name,
18    NamePlaceholder,
19    NameBuiltin,
20
21    Literal,
22    String,
23    StringSingle,
24    StringSymbol,
25    Number,
26    NumberHexadecimal,
27    NumberFloat,
28    NumberInteger,    
29    Punctuation,
30    Operator,
31    OperatorComparison,
32    Comparison,
33    Wildcard,
34    Comment,
35    CommentSingle,
36    CommentSingleHint,
37    CommentMultiline,
38    CommentMultilineHint,
39    Assignment,
40    // Generic types for non-source code
41    Generic,
42    Command,
43    // String and some others are not direct children of Token.
44    Token,
45    DML,
46    DDL,
47    CTE,
48    // group type
49    Case,
50    If,
51    For,
52    Begin,
53    Identifier,
54    IdentifierList,
55    Where,
56    Function,
57    Operation,
58    TypedLiteral,
59    Parenthesis,
60    SquareBrackets,
61    Values,
62}