|
1 | 1 | """SQL keywords — shared set for validation and tokenization.""" |
2 | 2 |
|
3 | | -SQL_KEYWORDS: frozenset[str] = frozenset({ |
4 | | - "select", "from", "where", "and", "or", "not", "in", "between", |
5 | | - "group", "by", "order", "having", "limit", "offset", "as", "on", |
6 | | - "join", "left", "right", "inner", "outer", "cross", "full", |
7 | | - "case", "when", "then", "else", "end", "null", "true", "false", |
8 | | - "asc", "desc", "distinct", "union", "all", "exists", "any", |
9 | | - "count", "sum", "avg", "min", "max", "abs", "round", "floor", "ceil", |
10 | | - "date_trunc", "dateadd", "datediff", "current_date", "getdate", |
11 | | - "extract", "epoch", "convert_timezone", "to_date", "to_char", |
12 | | - "coalesce", "nullif", "cast", "like", "ilike", "is", "with", |
13 | | - "month", "year", "day", "quarter", "week", "hour", "minute", "second", |
14 | | - "varchar", "int", "integer", "bigint", "numeric", "decimal", |
15 | | - "date", "timestamp", "boolean", "float", "double", "precision", |
16 | | - "over", "partition", "row_number", "rank", "dense_rank", |
17 | | - "lag", "lead", "first_value", "last_value", "listagg", |
18 | | - "approximate", "interval", "explain", "analyze", |
19 | | -}) |
| 3 | +SQL_KEYWORDS: frozenset[str] = frozenset( |
| 4 | + { |
| 5 | + "select", |
| 6 | + "from", |
| 7 | + "where", |
| 8 | + "and", |
| 9 | + "or", |
| 10 | + "not", |
| 11 | + "in", |
| 12 | + "between", |
| 13 | + "group", |
| 14 | + "by", |
| 15 | + "order", |
| 16 | + "having", |
| 17 | + "limit", |
| 18 | + "offset", |
| 19 | + "as", |
| 20 | + "on", |
| 21 | + "join", |
| 22 | + "left", |
| 23 | + "right", |
| 24 | + "inner", |
| 25 | + "outer", |
| 26 | + "cross", |
| 27 | + "full", |
| 28 | + "case", |
| 29 | + "when", |
| 30 | + "then", |
| 31 | + "else", |
| 32 | + "end", |
| 33 | + "null", |
| 34 | + "true", |
| 35 | + "false", |
| 36 | + "asc", |
| 37 | + "desc", |
| 38 | + "distinct", |
| 39 | + "union", |
| 40 | + "all", |
| 41 | + "exists", |
| 42 | + "any", |
| 43 | + "count", |
| 44 | + "sum", |
| 45 | + "avg", |
| 46 | + "min", |
| 47 | + "max", |
| 48 | + "abs", |
| 49 | + "round", |
| 50 | + "floor", |
| 51 | + "ceil", |
| 52 | + "date_trunc", |
| 53 | + "dateadd", |
| 54 | + "datediff", |
| 55 | + "current_date", |
| 56 | + "getdate", |
| 57 | + "extract", |
| 58 | + "epoch", |
| 59 | + "convert_timezone", |
| 60 | + "to_date", |
| 61 | + "to_char", |
| 62 | + "coalesce", |
| 63 | + "nullif", |
| 64 | + "cast", |
| 65 | + "like", |
| 66 | + "ilike", |
| 67 | + "is", |
| 68 | + "with", |
| 69 | + "month", |
| 70 | + "year", |
| 71 | + "day", |
| 72 | + "quarter", |
| 73 | + "week", |
| 74 | + "hour", |
| 75 | + "minute", |
| 76 | + "second", |
| 77 | + "varchar", |
| 78 | + "int", |
| 79 | + "integer", |
| 80 | + "bigint", |
| 81 | + "numeric", |
| 82 | + "decimal", |
| 83 | + "date", |
| 84 | + "timestamp", |
| 85 | + "boolean", |
| 86 | + "float", |
| 87 | + "double", |
| 88 | + "precision", |
| 89 | + "over", |
| 90 | + "partition", |
| 91 | + "row_number", |
| 92 | + "rank", |
| 93 | + "dense_rank", |
| 94 | + "lag", |
| 95 | + "lead", |
| 96 | + "first_value", |
| 97 | + "last_value", |
| 98 | + "listagg", |
| 99 | + "approximate", |
| 100 | + "interval", |
| 101 | + "explain", |
| 102 | + "analyze", |
| 103 | + } |
| 104 | +) |
0 commit comments