Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
68f5f707
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
68f5f707
编写于
6月 15, 2023
作者:
H
Hui Li
提交者:
GitHub
6月 15, 2023
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #21731 from taosdata/fix/TD-24808-3.0
fix: add compact split resume stream pause stream to tab key
上级
e52c6aae
d7f03678
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
22 addition
and
4 deletion
+22
-4
tools/shell/src/shellAuto.c
tools/shell/src/shellAuto.c
+22
-4
未找到文件。
tools/shell/src/shellAuto.c
浏览文件 @
68f5f707
...
@@ -91,9 +91,14 @@ SWords shellCommands[] = {
...
@@ -91,9 +91,14 @@ SWords shellCommands[] = {
{
"create stream <anyword> into <anyword> as select"
,
0
,
0
,
NULL
},
// 26 append sub sql
{
"create stream <anyword> into <anyword> as select"
,
0
,
0
,
NULL
},
// 26 append sub sql
{
"create topic <anyword> as select"
,
0
,
0
,
NULL
},
// 27 append sub sql
{
"create topic <anyword> as select"
,
0
,
0
,
NULL
},
// 27 append sub sql
{
"create function <anyword> as <anyword> outputtype <data_types> language <udf_language>"
,
0
,
0
,
NULL
},
{
"create function <anyword> as <anyword> outputtype <data_types> language <udf_language>"
,
0
,
0
,
NULL
},
{
"create or replace <anyword> as <anyword> outputtype <data_types> language <udf_language>"
,
0
,
0
,
NULL
},
{
"create aggregate function <anyword> as <anyword> outputtype <data_types> bufsize <anyword> language <udf_language>"
,
0
,
0
,
NULL
},
{
"create aggregate function <anyword> as <anyword> outputtype <data_types> bufsize <anyword> language <udf_language>"
,
0
,
0
,
NULL
},
{
"create or replace aggregate function <anyword> as <anyword> outputtype <data_types> bufsize <anyword> language <udf_language>"
,
0
,
0
,
NULL
},
{
"create user <anyword> pass <anyword> sysinfo 0;"
,
0
,
0
,
NULL
},
{
"create user <anyword> pass <anyword> sysinfo 0;"
,
0
,
0
,
NULL
},
{
"create user <anyword> pass <anyword> sysinfo 1;"
,
0
,
0
,
NULL
},
{
"create user <anyword> pass <anyword> sysinfo 1;"
,
0
,
0
,
NULL
},
#ifdef TD_ENTERPRISE
{
"compact database <db_name>"
,
0
,
0
,
NULL
},
#endif
{
"describe <all_table>"
,
0
,
0
,
NULL
},
{
"describe <all_table>"
,
0
,
0
,
NULL
},
{
"delete from <all_table> where "
,
0
,
0
,
NULL
},
{
"delete from <all_table> where "
,
0
,
0
,
NULL
},
{
"drop database <db_name>"
,
0
,
0
,
NULL
},
{
"drop database <db_name>"
,
0
,
0
,
NULL
},
...
@@ -117,7 +122,11 @@ SWords shellCommands[] = {
...
@@ -117,7 +122,11 @@ SWords shellCommands[] = {
{
"kill connection <anyword> ;"
,
0
,
0
,
NULL
},
{
"kill connection <anyword> ;"
,
0
,
0
,
NULL
},
{
"kill query "
,
0
,
0
,
NULL
},
{
"kill query "
,
0
,
0
,
NULL
},
{
"kill transaction "
,
0
,
0
,
NULL
},
{
"kill transaction "
,
0
,
0
,
NULL
},
#ifdef TD_ENTERPRISE
{
"merge vgroup "
,
0
,
0
,
NULL
},
{
"merge vgroup "
,
0
,
0
,
NULL
},
#endif
{
"pause stream <stream_name> ;"
,
0
,
0
,
NULL
},
{
"resume stream <stream_name> ;"
,
0
,
0
,
NULL
},
{
"reset query cache;"
,
0
,
0
,
NULL
},
{
"reset query cache;"
,
0
,
0
,
NULL
},
{
"restore dnode <dnode_id> ;"
,
0
,
0
,
NULL
},
{
"restore dnode <dnode_id> ;"
,
0
,
0
,
NULL
},
{
"restore vnode on dnode <dnode_id> ;"
,
0
,
0
,
NULL
},
{
"restore vnode on dnode <dnode_id> ;"
,
0
,
0
,
NULL
},
...
@@ -173,7 +182,9 @@ SWords shellCommands[] = {
...
@@ -173,7 +182,9 @@ SWords shellCommands[] = {
{
"show vgroups;"
,
0
,
0
,
NULL
},
{
"show vgroups;"
,
0
,
0
,
NULL
},
{
"show consumers;"
,
0
,
0
,
NULL
},
{
"show consumers;"
,
0
,
0
,
NULL
},
{
"show grants;"
,
0
,
0
,
NULL
},
{
"show grants;"
,
0
,
0
,
NULL
},
#ifdef TD_ENTERPRISE
{
"split vgroup "
,
0
,
0
,
NULL
},
{
"split vgroup "
,
0
,
0
,
NULL
},
#endif
{
"insert into <tb_name> values("
,
0
,
0
,
NULL
},
{
"insert into <tb_name> values("
,
0
,
0
,
NULL
},
{
"insert into <tb_name> using <stb_name> tags("
,
0
,
0
,
NULL
},
{
"insert into <tb_name> using <stb_name> tags("
,
0
,
0
,
NULL
},
{
"insert into <tb_name> using <stb_name> <anyword> values("
,
0
,
0
,
NULL
},
{
"insert into <tb_name> using <stb_name> <anyword> values("
,
0
,
0
,
NULL
},
...
@@ -432,9 +443,10 @@ void showHelp() {
...
@@ -432,9 +443,10 @@ void showHelp() {
kill connection <connection_id>;
\n
\
kill connection <connection_id>;
\n
\
kill query <query_id>;
\n
\
kill query <query_id>;
\n
\
kill transaction <transaction_id>;
\n
\
kill transaction <transaction_id>;
\n
\
-----
M
-----
\n
\
-----
P
-----
\n
\
merge vgroup ...
\n
\
pause stream <stream_name>;
\n
\
----- R -----
\n
\
----- R -----
\n
\
resume stream <stream_name>;
\n
\
reset query cache;
\n
\
reset query cache;
\n
\
restore dnode <dnode_id> ;
\n
\
restore dnode <dnode_id> ;
\n
\
restore vnode on dnode <dnode_id> ;
\n
\
restore vnode on dnode <dnode_id> ;
\n
\
...
@@ -489,14 +501,20 @@ void showHelp() {
...
@@ -489,14 +501,20 @@ void showHelp() {
show vgroups;
\n
\
show vgroups;
\n
\
show consumers;
\n
\
show consumers;
\n
\
show grants;
\n
\
show grants;
\n
\
split vgroup ...
\n
\
----- T -----
\n
\
----- T -----
\n
\
trim database <db_name>;
\n
\
trim database <db_name>;
\n
\
----- U -----
\n
\
----- U -----
\n
\
use <db_name>;"
);
use <db_name>;"
);
printf
(
"
\n\n
"
);
#ifdef TD_ENTERPRISE
printf
(
"
\n\n
\
----- special commands on enterpise version -----
\n
\
compact database <db_name>;
\n
\
split vgroup <vgroup_id>;"
);
#endif
printf
(
"
\n\n
"
);
// define in getDuration() function
// define in getDuration() function
printf
(
printf
(
"\
"\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录