Skip to content

Commit 8ebed77

Browse files
committed
improve snippets, release v1.3.0
1 parent cbac175 commit 8ebed77

4 files changed

Lines changed: 19 additions & 9 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ This extension provides Flink SQL support for VSCode. It also provides some basi
77

88
Enables syntax highlighting and complete keywords for Flink SQL(v1.16.0), including user-defined functions.
99

10+
![](images/flink-sql-vscode-snippets.gif)
11+
12+
snippets keywords:
13+
- create
14+
- select
15+
- insert
1016

1117
## How use
1218
Enable the extension on your file, either name the file with a extension:
89.5 KB
Loading

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flink-sql",
3-
"version": "1.2.1",
3+
"version": "1.3.0",
44
"displayName": "Flink SQL",
55
"description": "Adds support for Flink's variant of the SQL language",
66
"publisher": "CamileSing",

snippets/flink-sql.json

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
"prefix": "create",
44
"body": [
55
"CREATE TABLE ${1:table_name} (",
6-
"${2:column_names}",
6+
" ${2:first_column_name},",
7+
" ${3:last_column_name}",
78
")",
8-
"WITH ${3:properties_pairs}",
9-
";"
9+
"WITH (",
10+
" '${4:your_key}' ='${5:your_value}'",
11+
");"
1012
],
1113
"description": "Create a table with the same format and structure as another table."
1214
},
@@ -22,7 +24,7 @@
2224
"Select columns from a table": {
2325
"prefix": "select",
2426
"body": [
25-
"SELECT ${1:column_names}",
27+
"SELECT ${1:column_name}",
2628
"FROM ${2:table_name};"
2729
]
2830
},
@@ -31,19 +33,21 @@
3133
"body": [
3234
"INSERT ${1|INTO,OVERWRITE|} TABLE ${2:schema_name}.${3:table_name}",
3335
"SELECT",
34-
" ${4:column_names}",
36+
" ${4:first_column_name},",
37+
" ${5:last_column_name}",
3538
"FROM",
36-
" ${5:source_schema_name}.${6:source_table_name};"
39+
" ${6:source_schema_name}.${7:source_table_name};"
3740
]
3841
},
3942
"Create view statement": {
4043
"prefix": "create",
4144
"body": [
4245
"CREATE TEMPORARY VIEW ${1:view_name} AS",
4346
"SELECT",
44-
" ${2:column_names}",
47+
" ${2:first_column_name},",
48+
" ${3:last_column_name}",
4549
"FROM",
46-
" ${3:source_schema_name}.${4:source_table_name};"
50+
" ${4:source_schema_name}.${5:source_table_name};"
4751
]
4852
}
4953
}

0 commit comments

Comments
 (0)