|
1 | | -# flink-sql |
| 1 | +# Flink-SQL-VsCode |
2 | 2 |
|
3 | 3 | This extension provides Flink SQL support for VSCode. It also provides some basic code snippets for operations such as creating a table, altering a table, or renaming columns. |
4 | 4 |
|
5 | 5 |
|
6 | 6 | ## Features |
7 | 7 |
|
8 | | -Enables syntax highlighting and formatting for Flink SQL(v1.16.0), including user-defined functions. |
| 8 | +Enables syntax highlighting and complete keywords for Flink SQL(v1.16.0), including user-defined functions. |
9 | 9 |
|
10 | 10 |
|
11 | 11 | ## How use |
12 | 12 | Enable the extension on your file, either name the file with a extension: |
13 | 13 | - SQL |
14 | 14 | - FQL |
15 | | - |
| 15 | + |
16 | 16 | Or press F1, type 'Change Language Mode', and then choose FlinkSQL. |
17 | 17 |
|
18 | | -# TODO List |
| 18 | + |
| 19 | +## Color theme recommend |
| 20 | +~~~json |
| 21 | +{ |
| 22 | + "workbench.colorTheme": "Default Dark+", |
| 23 | + "editor.tokenColorCustomizations": { |
| 24 | + "textMateRules": [ |
| 25 | + { |
| 26 | + "scope": "keyword.control.flink", |
| 27 | + "settings": { |
| 28 | + "foreground": "#559DD6" |
| 29 | + } |
| 30 | + }, |
| 31 | + { |
| 32 | + "scope": "storage.type.flink", |
| 33 | + "settings": { |
| 34 | + "foreground": "#C27432" |
| 35 | + } |
| 36 | + }, |
| 37 | + { |
| 38 | + "scope": "support.type.flink", |
| 39 | + "settings": { |
| 40 | + "foreground": "#C27432" |
| 41 | + } |
| 42 | + }, |
| 43 | + { |
| 44 | + "scope": "constant.language.flink", |
| 45 | + "settings": { |
| 46 | + "foreground": "#C27432" |
| 47 | + } |
| 48 | + }, |
| 49 | + { |
| 50 | + "scope": "keyword.operator.arithmetic.flink", |
| 51 | + "settings": { |
| 52 | + "foreground": "#F4BE6B" |
| 53 | + } |
| 54 | + }, |
| 55 | + { |
| 56 | + "scope": "keyword.operator.relational.flink", |
| 57 | + "settings": { |
| 58 | + "foreground": "#F0F400" |
| 59 | + } |
| 60 | + }, |
| 61 | + { |
| 62 | + "scope": "keyword.operator.logical.flink", |
| 63 | + "settings": { |
| 64 | + "foreground": "#C27432" |
| 65 | + } |
| 66 | + }, |
| 67 | + { |
| 68 | + "scope": "support.function.udf.complex.flink", |
| 69 | + "settings": { |
| 70 | + "foreground": "#F2BC69" |
| 71 | + } |
| 72 | + }, |
| 73 | + { |
| 74 | + "scope": "support.function.udf.mathematic.flink", |
| 75 | + "settings": { |
| 76 | + "foreground": "#F2BC69" |
| 77 | + } |
| 78 | + }, |
| 79 | + { |
| 80 | + "scope": "support.function.udf.type-cast.flink", |
| 81 | + "settings": { |
| 82 | + "foreground": "#F2BC69" |
| 83 | + } |
| 84 | + }, |
| 85 | + { |
| 86 | + "scope": "support.function.udf.date.flink", |
| 87 | + "settings": { |
| 88 | + "foreground": "#F2BC69" |
| 89 | + } |
| 90 | + }, |
| 91 | + { |
| 92 | + "scope": "support.function.udf.conditional.flink", |
| 93 | + "settings": { |
| 94 | + "foreground": "#F2BC69" |
| 95 | + } |
| 96 | + }, |
| 97 | + { |
| 98 | + "scope": "support.function.udf.string.flink", |
| 99 | + "settings": { |
| 100 | + "foreground": "#F2BC69" |
| 101 | + } |
| 102 | + }, |
| 103 | + { |
| 104 | + "scope": "support.function.udf.json.flink", |
| 105 | + "settings": { |
| 106 | + "foreground": "#F2BC69" |
| 107 | + } |
| 108 | + }, |
| 109 | + { |
| 110 | + "scope": "support.function.udf.value.construct.flink", |
| 111 | + "settings": { |
| 112 | + "foreground": "#F2BC69" |
| 113 | + } |
| 114 | + }, |
| 115 | + { |
| 116 | + "scope": "support.function.udf.value.access.flink", |
| 117 | + "settings": { |
| 118 | + "foreground": "#F2BC69" |
| 119 | + } |
| 120 | + }, |
| 121 | + { |
| 122 | + "scope": "support.function.udaf.flink", |
| 123 | + "settings": { |
| 124 | + "foreground": "#F2BC69" |
| 125 | + } |
| 126 | + }, |
| 127 | + { |
| 128 | + "scope": "support.function.udf.aggregate.flink", |
| 129 | + "settings": { |
| 130 | + "foreground": "#F2BC69" |
| 131 | + } |
| 132 | + }, |
| 133 | + { |
| 134 | + "scope": "support.function.udf.time.flink", |
| 135 | + "settings": { |
| 136 | + "foreground": "#F2BC69" |
| 137 | + } |
| 138 | + }, |
| 139 | + { |
| 140 | + "scope": "support.function.udf.column.flink", |
| 141 | + "settings": { |
| 142 | + "foreground": "#F2BC69" |
| 143 | + } |
| 144 | + }, |
| 145 | + { |
| 146 | + "scope": "support.function.time.attributes.flink", |
| 147 | + "settings": { |
| 148 | + "foreground": "#F2BC69" |
| 149 | + } |
| 150 | + }, |
| 151 | + ], |
| 152 | + } |
| 153 | +} |
| 154 | +~~~ |
| 155 | + |
| 156 | +## TODO List |
19 | 157 | - Support grammer:`Conditional Functions`:`CASE value WHEN value1_1 [, value1_2]* THEN RESULT1 (WHEN value2_1 [, value2_2 ]* THEN result_2)* (ELSE result_z) END` |
20 | 158 | - Error grammer highlight |
0 commit comments